joshspeagle / dynesty

Dynamic Nested Sampling package for computing Bayesian posteriors and evidences
https://dynesty.readthedocs.io/
MIT License
347 stars 76 forks source link

Issue with new scipy versions (scipy>=1.3.0) #145

Closed MNGuenther closed 5 years ago

MNGuenther commented 5 years ago

Scipy's logsumexp function has been moved/renamed from version >=1.3.0 onwards, leading to dynesty failing with the following error: AttributeError: module 'scipy.misc' has no attribute 'logsumexp'

joshspeagle commented 5 years ago

This should not be triggering in later versions -- I think every part of the code has a try...except statement that first attempts to import from scipy.special and then from scipy.misc. Could you flag exactly what version you are using and where this is popping up?

MNGuenther commented 5 years ago

Thanks Josh! I was using dynesty version 0.9.5.3. I have now updated to 0.9.7, that should solve the issue. Sorry for the false alarm, feel free to close this ticket!

joshspeagle commented 5 years ago

Okay. Let me know if you run into any other weird things -- there seems to be a problem with stalled runs that I'm looking into, so if anything else that seems suspicious/affects your runs pops up please continue to raise issues! :)