tomasstolker / species

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

Any in cloud params vs kzz bug #99

Closed wbalmer closed 4 months ago

wbalmer commented 4 months ago

Hi Tomas,

A small bug I found in retrieval.py was that there are some cloud setups that don't include kzz (or fsed) as a parameter but should follow the first if statement in _lnlike, otherwise you get an error because cloud_dict is not defined. In my case it was using cloud model 2 from Paul's 2020 paper. In this commit I used a quick loop within an any() instead of testing if kzz was included, and then I ran black on the whole of the file.