summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-04-17 11:57:14 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-04-30 13:20:53 +0100
commite3c9be8230ac01feeebd9f44d7670abdea79d2ba (patch)
treef9dcc433d8c04647f30b2a92109a1496d4042135 /gnu
parent00483d705eeac586b9850f286691338b0ffa616d (diff)
gnu: Add python-ctaplot.
* gnu/packages/astronomy.scm (python-ctaplot): New variable. Change-Id: I955f20973cbd90cd8fd98f2dd27e6401a9e6f45a
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d76eb6e237..943ad3bf50 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4535,6 +4535,52 @@ Telescopes developed for @acronym{CTAO, Cherenkov Telescope Array
Observatory}.")
(license license:bsd-3)))
+(define-public python-ctaplot
+ (package
+ (name "python-ctaplot")
+ (version "0.6.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cta-observatory/ctaplot")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dpcrc0svj0a498fsgw2jayj522h816bzzck41l7qfbrh23gmyv4"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ ;; See: <https://github.com/cta-observatory/ctaplot/pull/213>.
+ (substitute* "setup.py"
+ ((".*ipympl.*") "")))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list jupyter
+ python-astropy
+ python-ipywidgets
+ python-matplotlib
+ python-numpy
+ python-pandas
+ python-pyyaml
+ python-scikit-learn
+ python-scipy
+ python-tables
+ python-tqdm))
+ (home-page "https://github.com/cta-observatory/ctaplot")
+ (synopsis "Plotting library for CTA and other IACT")
+ (description
+ "@code{ctaplot} provides low-level reconstruction quality-checks metrics
+computation and vizualisation for Imaging Atmospheric Cherenkov Telescopes
+such as CTA.")
+ (license license:expat)))
+
(define-public python-czml3
(package
(name "python-czml3")