A dynamic nested sampling package for computing Bayesian posteriors and evidences. Current version 3.0.0 (released 2024-06-10). Requires Python >=3.8. Active development with major refactoring in v3.0.0 for extensibility and speed.
pip install dynestyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic nested sampling run with Gaussian likelihood and uniform prior.
Use sampler classes: from dynesty.sampling import RWalkSampler; NestedSampler(..., sample=RWalkSampler(walks=44))
Remove npdim parameter; ensure prior_transform returns array of length ndim.
If you need to resume, finish the run with an older version or restart from scratch.
Provide all four entries when specifying live_points with blobs.
Use correct import: from dynesty import NestedSampler
Ensure prior_transform returns a 1D array of length ndim.
Use sampler.run_nested(dlogz=0.5) or other kwargs.
Use multiprocessing.Pool directly: pool = multiprocessing.Pool(); sampler = NestedSampler(..., pool=pool)