Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cloudpickle for pickling dynesty sampler #1094

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pypesto/sample/dynesty.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ def get_mcmc_like_dynesty_samples(sampler) -> McmcPtResult:
def setup_dynesty() -> None:
"""Import dynesty."""
try:
import dill # noqa: S403
import cloudpickle # noqa: S403
import dynesty.utils

dynesty.utils.pickle_module = dill
dynesty.utils.pickle_module = cloudpickle
except ImportError:
raise SamplerImportError("dynesty")
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ jax =
emcee =
emcee >= 3.0.2
dynesty =
dill >= 0.3.6
dynesty >= 2.0.3
mltools =
umap-learn[plot] >= 0.5.3
Expand Down