Dynesty

Latest version: v2.1.5

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

2.1.5

Fixed
- Fix the issue with merge_runs when the dynamic runs with different number of batches are merged ( 481 reported by rodleiva, fixed by segasai)
- Fix the issue with leaking file descriptors when using dynesty pool. Can lead to 'too many open files' problem ( 379, reported by bencebecsy, fixed by segasai)

2.1.4

Added

Changed
- Get rid of npdim option that at some point may have allowed the prior transformation to return higher dimensional vector than the inputs. Note that due to this change, restoring the checkpoint from previous version of the dynesty won't be possible) (issues 456, 457) (original issue reported by MichaelDAlbrow, fixed by segasai )
Fixed
- Fix the way the additional arguments are treated when working with dynesty's pool. Previously those only could have been passed through dynesty.pool.Pool() constructor. Now they can still be provided directly to the sampler (not recommended) ( 464 , reported by eteq, fixed by segasai )
- change the .ptp() method to np.ptp() function as it is deprecated in numpy 2.0 ( 478 , reported and patched by joezuntz)
- Fix an error if you use run_nested() several times (i.e. with maxiter option) while using blob=True. ( 475 , reported by carlosRmelo)

2.1.3

Added
- Warning is emitted if bootstrap expansion factor is too large ( segasai )
- Warning is emitted if maxcall/maxiter stop the iterations too early ( segasai )
Changed
- The clustering/K-means for ellipsoid decomposition is now done in scaled space of points divided by stddev along each dimension ( segasai)
- Update the initialisation of points in the case where some fraction of prior volume has log(L)=-inf this should increase the accuracy of log(Z) estimates in some cases
Fixed
- Fix a rare possible bug where due to numerical instability in uniform sampling a q==0 error could have occured ( segasai)
- Fix a FileExistsError when using check-points on Windows ( 450, reported by rodleiva, fixed by segasai )

2.1.2

Fixed
- Fix the restoration of the dynamic sampler from the checkpoint with the pool. Previously after restoring the sampler, the pool was not used. (438 ; by segasai)
- Fix the issue with checkpointing from the dynamic sampler. Previously if one batch took shorter than the checkpoint_every seconds then the checkpoints were not created (by segasai)
- Fix the restoration from checkpoint that could have occassiounaly lead to one skipped point from nested run (by segasai)

2.1.1

Changed
- Change the way initialization of live-points happens. Now if after 1000 iterations we managed to get at least a single point, the code will continue sampling after putting a warning. Previously the error was raised. (by segasai )
- Refactor the bound update code which will lead to more consistent boundary updates (428 by segasai )
- If incorrect keys to first_update are provided an exception will be raised
Fixed
- Fix some pathological cases when uniform distribution is sampled with a very low logl.
- Fix a problem when a very small nlive is used leading to the error (424 , reported by frgsimpson)
- Fix the incorrect update_interval calculation leading to too unfrequent updates of bounds when using dynamic sampler (report by ajw278, analysis and fix by segasai)
- If you try to resume a previously finished dynamic run, the warning will be raised and the sampler will exit (previously an error could have occured in this case)

2.1.0

Added
- Dynesty is now able to correctly sample posteriors that have plateaus (i.e. areas of constant likelihood)
Changed
Fixed
- Previously when sampling posteriors that have areas with log(L)=minus infinity the computed evidence values were biased by roughly the fraction of the prior volume that has infinite log(L).

Page 1 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.