joshspeagle / dynesty

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

__getstate__ has wrong indentation for DynamicSampler #192

Closed ahnitz closed 4 years ago

ahnitz commented 4 years ago

The getstate method of the DynamicSampler wasn't actually being called as it had the wrong indentation and so was being considered a method of the init method. I noticed this when trying to pickle DynamicSampler in the same way we do for the fixed live point samplers here.

In combination with #188, this makes it a bit easier to save and resume progress.

joshspeagle commented 4 years ago

Thanks for catching this and introducing a quick fix. This has now been merged.