Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error writepp function with eccentricity free and omega fixed #63

Open
sergiohoyer opened this issue Jun 23, 2021 · 1 comment
Open
Labels
bug Something isn't working fixed-on-dev invalid This doesn't seem right question Further information is requested

Comments

@sergiohoyer
Copy link

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

@nespinoza nespinoza added bug Something isn't working invalid This doesn't seem right question Further information is requested labels Mar 16, 2022
@nespinoza
Copy link
Owner

nespinoza commented May 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-on-dev invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants