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

AttributeError: module 'exoplanet.distributions' has no attribute 'Angle' #264

Closed
dfm opened this issue Jul 5, 2022 · 1 comment
Closed

Comments

@dfm
Copy link
Member

dfm commented Jul 5, 2022

Discussed in https://github.com/exoplanet-dev/exoplanet/discussions/262

Originally posted by wnguyen1312 July 2, 2022
I am using this tutorial https://docs.exoplanet.codes/en/v0.1.5/tutorials/tess/#transit-search to fit TESS data. One of the attributes used is no longer supported, giving this error:


AttributeError Traceback (most recent call last)
/var/folders/0x/dxkrhfxd76v48mhlq70b0j7h0000gn/T/ipykernel_11496/4281003480.py in
84 return model, map_soln
85
---> 86 model0, map_soln0 = build_model()

/var/folders/0x/dxkrhfxd76v48mhlq70b0j7h0000gn/T/ipykernel_11496/4281003480.py in build_model(mask, start)
30 # https://arxiv.org/abs/1306.4982
31 ecc = pm.Beta("ecc", alpha=0.867, beta=3.03, testval=0.1)
---> 32 omega = xo.distributions.Angle("omega")
33
34 # Transit jitter & GP parameters

AttributeError: module 'exoplanet.distributions' has no attribute 'Angle'

What is the 'updated' attribute that I should use to fix this problem?

Thank you.

@dfm
Copy link
Member Author

dfm commented Jul 5, 2022

That's a very old version of the docs: the most recent version is 0.5.2, and you're looking at 0.1.5. Take a look at the current case studies page for the up to date tutorial: https://gallery.exoplanet.codes/

@dfm dfm closed this as completed Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant