From 6f5bf95372f46146fa981192c0076b4545bed0b3 Mon Sep 17 00:00:00 2001 From: Hannu Parviainen Date: Tue, 27 Sep 2016 14:40:49 +0100 Subject: [PATCH] Bugfix: evaluate for eccentric secondary eclipse-models was broken. --- src/tm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tm.py b/src/tm.py index ddc64a2..4223475 100644 --- a/src/tm.py +++ b/src/tm.py @@ -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