Skip to content

Commit 52f271c

Browse files
committed
fixing phase generation issue for trios v2
1 parent 5ac3391 commit 52f271c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MonoTools/fit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,8 @@ def init_lc(self, oot_binsize=1/48, **kwargs):
10921092
phase=self.make_phase(self.lc.time,t0s,p)
10931093
else:
10941094
t0= self.init_soln['t0_'+pl] if hasattr(self,'init_soln') else self.planets[pl]['tcen_2']
1095-
phase=self.make_phase(self.lc.time,t0,p)
1095+
p=abs(self.init_soln['t0_2_'+pl]-self.init_soln['t0_'+pl]) if hasattr(self,'init_soln') else abs(self.planets[pl]['tcen_2']-self.planets[pl]['tcen'])
1096+
phase=(self.lc.time-t0-0.5*p)%p-0.5*p
10961097
elif pl in self.duos:
10971098
t0= self.init_soln['t0_'+pl] if hasattr(self,'init_soln') else self.planets[pl]['tcen']
10981099
p=abs(self.init_soln['t0_2_'+pl]-self.init_soln['t0_'+pl]) if hasattr(self,'init_soln') else abs(self.planets[pl]['tcen_2']-self.planets[pl]['tcen'])

0 commit comments

Comments
 (0)