Closed dilpath closed 1 year ago
I believe it's possible to use dill, if before running your code you change the pickle_module object in dynesty.utils That's a bit of an unofficial interface, but it works and it was written specifically for that. I think we may need some way official API for it, but I'm not sure it's a big deal.
import dill
import dynesty.utils
dynesty.utils.pickle_module=dill
Thanks! Works well for me :+1:
Dynesty version
pip install dynesty==2.0.3
Describe the bug In my use of the
dynesty.utils.save_sampler
method, it fails with the following error.As described by @segasai [1], if I simply pickle the sampler with
dill
, it works without error. It would be great if the default pickle module could be changed todill
.[1] https://github.com/joshspeagle/dynesty/pull/386#issuecomment-1230885706