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' has no attribute 'PyMC3Sampler' #112

Closed victoriafoing closed 4 years ago

victoriafoing commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

PyMC3Sampler not being recognized in exoplanet

To Reproduce This section should include a simple, standalone code snippet that demonstrates the issue.

The following line of code sampler = xo.PyMC3Sampler(finish=finish, chains=chains) returns the error AttributeError: module 'exoplanet' has no attribute 'PyMC3Sampler'

Expected behavior A clear and concise description of what you expected to happen.

This worked fine until today

Your setup (please complete the following information):

Google Colab

Additional context Add any other context about the problem here.

dfm commented 4 years ago

That interface was removed a few versions ago - sorry! The currently recommended interface is described here: https://docs.exoplanet.codes/en/stable/tutorials/pymc3-extras/#dense-mass-matrices

And in the tutorials that follow. Hope this helps!

victoriafoing commented 4 years ago

Thanks!