nespinoza / juliet

A versatile modelling tool for transiting and non-transiting (single and multiple) exoplanetary systems
MIT License
53 stars 31 forks source link

Error writepp function with eccentricity free and omega fixed #63

Open sergiohoyer opened 3 years ago

sergiohoyer commented 3 years ago

Hola Nestor! I got the following error when doing the fit using a free eccentricity but a fixed omega:

`~/anaconda3/envs/juliet/lib/python3.8/site-packages/juliet/utils.py in writepp(fout, posteriors, priors) 582 elif 'ecc_'+planet in posteriors['posterior_samples']: 583 ecc = posteriors['posteriorsamples']['ecc'+planet] --> 584 omega = posteriors['posteriorsamples']['omega'+planet]*np.pi/180. 585 else: 586 ecc = 0. KeyError: 'omega_p1'

It is mandatory to have both parameters free during the fit? Gracias!

Sergio

nespinoza commented 4 months ago

Hey @sergiohoyer --- very late coming to this. Finally wrote a workaround for this --- should be fixed in the next version (2.2.8). Not pushing that now as it is not critical --- but people having this issue can install juliet's dev version and will see this fixed. Will close this comment when that version is up.

N.