tomasstolker / species

Toolkit for atmospheric characterization of directly imaged exoplanets
https://species.readthedocs.io
MIT License
22 stars 10 forks source link

Small fixes #98

Closed wbalmer closed 5 months ago

wbalmer commented 5 months ago

Hi Tomas, these are a few very small bugs I found in running some retrievals this past month.

When plotting a free chemistry retrieval, there was no enumerator in the loop so the C/H, O/H, and C/O posteriors were returned with =0.

When global_fsed was set false, and then post processed to make plots, it would give a KeyError: "fsed", which I handled with the try/except statement (not sure if there is a different way you'd prefer to handle that).

The mmw wasn't established in the chemical equilibrium portion of the clear spectrum generator.

tomasstolker commented 5 months ago

Great! Thanks a lot for catching these bugs William!

Added one suggestion to change from try-except to if-then.

tomasstolker commented 5 months ago

Thanks again @wbalmer 🙏!