diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-17 14:52:03 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-30 07:58:33 +0100 |
commit | d3711c6c2ea62497f5a857b7d2e4a33ecad11a83 (patch) | |
tree | 4d7a37c58c4c4f8a2e89c23a73a2e3f210537682 | |
parent | fe17928d2b1854e57cf31c7978ea021b598a5ec6 (diff) |
gnu: Add python-dynesty.
* gnu/packages/statistics.scm (python-dynesty): New variable.
Change-Id: I8ddbc66c82136fc6c0470cc3cd313f3832cd24d6
-rw-r--r-- | gnu/packages/statistics.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index e966dce597..b295aaf0ec 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -465,6 +465,46 @@ publication-quality data plots. A large amount of 3rd-party packages are available, greatly increasing its breadth and scope.") (license license:gpl3+))) +(define-public python-dynesty + (package + (name "python-dynesty") + (version "2.1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "dynesty" version)) + (sha256 + (base32 "04fkbixkfyqlr8zjky177bmqxqd19xcicqx3r1mhhy0z7942sx7x")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--numprocesses" (number->string (parallel-job-count)) + ;; To run a full tests suite takes a few hours on 16 threads, + ;; skip slow tests. + "-m" "not slow" + ;; Tests fail with error: (liwork>=max(1,10*n)||liwork==-1) + ;; failed for 10th keyword liwork: dsyevr:liwork= + "--deselect=tests/test_ellipsoid.py::test_bounding_crazy[1]" + "--deselect=tests/test_plot.py::test_gaussian[True-False-1-multi]"))) + (native-inputs + (list python-pytest + python-pytest-xdist + python-setuptools + python-wheel)) + (propagated-inputs + (list python-h5py + python-matplotlib + python-numpy + python-scipy + python-tqdm)) + (home-page "https://github.com/joshspeagle/dynesty") + (synopsis "Dynamic nested sampling computing Bayesian posteriors and evidences") + (description + "This package implements a Dynamic Nested Sampling for computing Bayesian +posteriors and evidences.") + (license license:expat))) + (define-public r-minimal (package (inherit r-with-tests) (name "r-minimal") |