Skip to content

Commit

Permalink
fixing phase generation issue for trios v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hposborn committed Jul 10, 2024
1 parent 5ac3391 commit 52f271c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MonoTools/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,8 @@ def init_lc(self, oot_binsize=1/48, **kwargs):
phase=self.make_phase(self.lc.time,t0s,p)
else:
t0= self.init_soln['t0_'+pl] if hasattr(self,'init_soln') else self.planets[pl]['tcen_2']
phase=self.make_phase(self.lc.time,t0,p)
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'])
phase=(self.lc.time-t0-0.5*p)%p-0.5*p
elif pl in self.duos:
t0= self.init_soln['t0_'+pl] if hasattr(self,'init_soln') else self.planets[pl]['tcen']
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'])
Expand Down

0 comments on commit 52f271c

Please sign in to comment.