Skip to content

Commit

Permalink
Fixes issue sebastian-zieba#16. One now needs to specify the path to …
Browse files Browse the repository at this point in the history
…the exotic ld package data in a variable called exoticld_path in the pcf
  • Loading branch information
gapp-c committed Oct 9, 2023
1 parent 97af993 commit f1a5c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/pacman/lib/get_ld.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@
def get_ld(meta):
# Stellar models: 1D or 3D grid.
ld_model = '1D'

# Path to the installed data.
ld_data_path = '/home/zieba/Downloads/exotic-ld_data'

sld = StellarLimbDarkening(meta.MH, meta.Teff, meta.logg, ld_model, ld_data_path)

sld = StellarLimbDarkening(meta.MH, meta.Teff, meta.logg, ld_model, meta.exoticld_path)

# Instrument mode.
if meta.grism == 'G102':
Expand Down
2 changes: 1 addition & 1 deletion src/pacman/s30_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run30(eventlabel, workdir, meta=None):
print('\n')
data = Data(f, meta, fit_par)
model = Model(data, myfuncs)
print('\n*STARTS LEAST SQUARED*')
print('\n*STARTS LEAST SQUARES*')
data, model, params, m = lsq_fit(fit_par, data, meta, model, myfuncs, noclip=True) #not clipping

## IF THE USER WANTS CLIPPING
Expand Down

0 comments on commit f1a5c18

Please sign in to comment.