Skip to content

Commit

Permalink
fixing tlusty Z determination
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Nov 22, 2023
1 parent 765e5db commit 455722a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion measure_extinction/utils/fit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def lnprob(params, obsdata, modeldata, fitinfo):
information about the fitting
"""
lnp = fitinfo.lnprior(params)
print(lnp, fitinfo.lnlike(params, obsdata, modeldata))
# print(params)
# print(lnp, fitinfo.lnlike(params, obsdata, modeldata))
if lnp == lnp_bignnum:
return lnp
else:
Expand Down
5 changes: 4 additions & 1 deletion measure_extinction/utils/make_all_tlusty_obsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def decode_params(filename):
gpos = filename.find("g", slashpos)
vpos = filename.find("v", slashpos)

model_params["Z"] = float(filename[zpos + 1 : tpos]) * 0.01
if tpos - zpos > 4:
model_params["Z"] = float(filename[zpos + 1 : tpos]) * 0.001
else:
model_params["Z"] = float(filename[zpos + 1 : tpos]) * 0.01
model_params["Teff"] = float(filename[tpos + 1 : gpos])
model_params["logg"] = float(filename[gpos + 1 : vpos]) * 0.01
model_params["vturb"] = float(filename[vpos + 1 : periodpos])
Expand Down

0 comments on commit 455722a

Please sign in to comment.