Skip to content

Commit

Permalink
Bugfix: evaluate for eccentric secondary eclipse-models was broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Sep 27, 2016
1 parent 1e64aec commit 6f5bf95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ def _calculate_z(self, t, t0, p, a, i, e=0, w=0, interpolate_z=False):
else:
if fabs(e) < 0.01:
z = of.z_circular(self._time, t0, p, a, i, nth=self.nthr)
if self.eclipse:
z *= -1.
elif fabs(e) < 0.2:
z = of.z_eccentric_ps3(self._time, t0, p, a, i, e, w, nth=self.nthr)
else:
z = of.z_eccentric_newton(self._time, t0, p, a, i, e, w, nth=self.nthr)

if self.eclipse:
z *= -1.

return z

0 comments on commit 6f5bf95

Please sign in to comment.