Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes #98

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion species/plot/plot_mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def plot_posterior(
o_h_ratio = np.zeros(samples.shape[0])
c_o_ratio = np.zeros(samples.shape[0])

for sample_item in samples:
for i,sample_item in enumerate(samples):
abund_dict = {}
for line_item in line_species:
abund_dict[line_item] = sample_item[abund_index[line_item]]
Expand Down
6 changes: 5 additions & 1 deletion species/util/radtrans_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ def retrieval_spectrum(
model_param["albedo"] = sample[indices["albedo"]]

elif len(cloud_species) > 0:
model_param["fsed"] = sample[indices["fsed"]]
if "fsed" in indices:
model_param["fsed"] = sample[indices["fsed"]]
else:
for item in cloud_species:
model_param[f"fsed_{item}"] = sample[indices[f"fsed_{item}"]]
model_param["sigma_lnorm"] = sample[indices["sigma_lnorm"]]

if "kzz" in indices:
Expand Down
2 changes: 2 additions & 0 deletions species/util/retrieval_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@ def calc_spectrum_clear(
pressure,
Pquench_carbon=p_quench,
)
# Extract the mean molecular weight
mmw = abund_in["MMW"]

elif chemistry == "free":
# Free abundances
Expand Down
Loading