Skip to content

Commit

Permalink
changed fitting parameters from ac to t_secondary for eclipses
Browse files Browse the repository at this point in the history
  • Loading branch information
nespinoza committed Aug 17, 2022
1 parent 7693bc7 commit 0c9d5e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions juliet/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3121,7 +3121,7 @@ def generate_lc_model(self,
###
if self.dictionary[instrument]['EclipseFit'] or self.dictionary[instrument]['TranEclFit']:
fp = parameter_values['fp_p' + str(i)]
ac = parameter_values['ac_p' + str(i)]
t_secondary = parameter_values['t_secondary_p' + str(i)]
###
# Check if we will be fitting for TTVs. If not, all goes as usual. If we are, check which parametrization (dt or T):
if not self.dictionary[instrument]['TTVs'][i]['status']:
Expand Down Expand Up @@ -3272,7 +3272,7 @@ def generate_lc_model(self,

if self.dictionary[instrument]['EclipseFit'] or self.dictionary[instrument]['TranEclFit']:
self.model[instrument]['params'].fp = fp
self.model[instrument]['params'].ac = ac
self.model[instrument]['params'].t_secondary = t_secondary

if not self.dictionary[instrument]['TransitFitCatwoman']:

Expand Down
3 changes: 1 addition & 2 deletions juliet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ def init_batman(t, ld_law, nresampling=None, etresampling=None):
else:
params.limb_dark = ld_law

params.ac = 0.001
params.fp = 0.001

params.t_secondary = params.t0 + (params.per/2) + params.ac
params.t_secondary = params.t0 + (params.per/2)

if nresampling is None or etresampling is None:

Expand Down

0 comments on commit 0c9d5e1

Please sign in to comment.