joshspeagle / dynesty

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

Random fixes #292

Closed segasai closed 3 years ago

segasai commented 3 years ago

Fix to not use np.random anywhere, instead rely on numpy generator. Also ensure that the map() methods get seeds to initialize the random generators, so things are fully deterministic even in the multithreaded scenario. Fixes #291

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 948785500


Changes Missing Coverage Covered Lines Changed/Added Lines %
py/dynesty/plotting.py 6 8 75.0%
py/dynesty/bounding.py 25 31 80.65%
<!-- Total: 88 96 91.67% -->
Files with Coverage Reduction New Missed Lines %
py/dynesty/dynamicsampler.py 1 88.01%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 948718536: 0.9%
Covered Lines: 3683
Relevant Lines: 4585

💛 - Coveralls