exoplanet-dev / exoplanet

Fast & scalable MCMC for all your exoplanet needs!
https://docs.exoplanet.codes
MIT License
206 stars 52 forks source link

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

Closed dfm closed 2 years ago

dfm commented 2 years ago

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 commented 2 years ago

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/