Skip to content

Commit

Permalink
MR: correction of ck (issue with astropy units)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuR18 committed Sep 20, 2024
1 parent 202359e commit f65784e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ForMoSA/nested_sampling/nested_modif_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def calc_ck(flx_obs_spectro, err_obs_spectro, flx_mod_spectro, flx_obs_photo, er
if analytic == 'no':
r_picked *= u.Rjup
d_picked *= u.pc
ck = alpha * (r_picked.value/d_picked.value)**2
ck = alpha * (r_picked.to(u.m).value/d_picked.to(u.m).value)**2
# Calculation of the dilution factor ck analytically
else:
if len(flx_obs_spectro) != 0:
Expand Down

0 comments on commit f65784e

Please sign in to comment.