Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Jul 26, 2023
1 parent 864f54a commit be43e2f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions species/util/retrieval_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,9 +1072,16 @@ def calc_spectrum_clouds(
knot_abund[node_idx] = abund_in[f"{abund_item}_{node_idx}"]
del abund_in[f"{abund_item}_{node_idx}"]

abund_in[abund_item] = pt_spline_interp(
knot_press_abund, knot_abund, pressure, pt_smooth=0.1
)
try:
abund_in[abund_item] = pt_spline_interp(
knot_press_abund, knot_abund, pressure, pt_smooth=0.1
)

except ValueError:
print("knot_press", knot_press_abund)
print("knot_temp", knot_abund)

return None, None, None, np.zeros(1)

# Mean molecular weight

Expand Down

0 comments on commit be43e2f

Please sign in to comment.