aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-06-11 23:00:59 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-06-30 10:11:19 +0100
commitedb71f8e50e383a8380948dfaded44cbdf243002 (patch)
tree8f91bade97a1bcb8bc1f665a121e11a49f34804f /gnu/packages
parent48e9b346db938fb3865e608bb5a8971a652e7475 (diff)
downloadguix-edb71f8e50e383a8380948dfaded44cbdf243002.tar.gz
guix-edb71f8e50e383a8380948dfaded44cbdf243002.zip
gnu: Add python-naima.
* gnu/packages/astronomy.scm (python-naima): New variable. Change-Id: Ie4b69f0bbd9f73ec1d393a5870f61b48e1ad621e
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/astronomy.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 9bdc19a17e..676bf437ef 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -83,6 +83,7 @@
#:use-module (gnu packages readline)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages sphinx)
+ #:use-module (gnu packages statistics)
#:use-module (gnu packages textutils)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
@@ -2407,6 +2408,37 @@ of dates.")
the easy construction of interactive matplotlib widget based animations.")
(license license:bsd-3)))
+(define-public python-naima
+ (package
+ (name "python-naima")
+ (version "0.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "naima" version))
+ (sha256
+ (base32 "1lng2prl2kzzpgrkj11hl53cvqdh0gpk8cdqkvcg08k3bivzk8q8"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-astropy
+ python-corner
+ python-emcee
+ python-h5py
+ python-matplotlib
+ python-pyyaml
+ python-scipy))
+ (native-inputs
+ (list python-pytest python-setuptools-scm))
+ (home-page "http://github.com/zblz/naima")
+ (synopsis "Derivation of non-thermal particle distributions through MCMC spectral fitting")
+ (description
+ "This package implement functionality for computation of non-thermal
+radiation from relativistic particle populations. It includes tools to
+perform MCMC fitting of radiative models to X-ray, GeV, and TeV spectra using
+@code{emcee}, an affine-invariant ensemble sampler for Markov Chain Monte
+Carlo.")
+ (license license:bsd-3)))
+
(define-public python-ndcube
(package
(name "python-ndcube")