juliet icon indicating copy to clipboard operation
juliet copied to clipboard

Error writepp function with eccentricity free and omega fixed

Open sergiohoyer opened this issue 3 years ago • 1 comments

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['posterior_samples']['ecc_'+planet] --> 584 omega = posteriors['posterior_samples']['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

sergiohoyer avatar Jun 23 '21 14:06 sergiohoyer

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.

nespinoza avatar May 31 '24 18:05 nespinoza