summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-21 13:18:15 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 22:13:41 +0100
commit2898527d2a09a2e373ff94675b35747fc6a0f126 (patch)
tree232210a32c3ab870be17e934bc082acd9977e915
parent11ef30cb05f9a6021b566d3819ea331a857d61c6 (diff)
gnu: Add python-space-dolphin.
* gnu/packages/astronomy.scm (python-space-dolphin): New variable. Change-Id: I2185ed6b0c34e95458854f18046e7e47a4170e37
-rw-r--r--gnu/packages/astronomy.scm57
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 3c8acc5387..e28559e227 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -5961,6 +5961,63 @@ but has evolved to support other missions as well.")
;; known as New or Revised BSD).
(license license:bsd-3)))
+(define-public python-space-dolphin
+ (package
+ (name "python-space-dolphin")
+ (version "1.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "space_dolphin" version))
+ (sha256
+ (base32 "0qxpb6ss0w4f6mnisri3i3a5g5dfa12a7iimdchzqql7r53x7xiq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ;TODO: Enable when tensorflow is fixed.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; RuntimeError: cannot cache function 'rotate': no locator
+ ;; available for file '<...>/lenstronomy/Util/util.py'.
+ (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
+ (native-inputs
+ (list ;; python-pytest
+ python-setuptools-next
+ python-wheel))
+ (propagated-inputs
+ (list python-astropy
+ python-corner
+ python-emcee
+ python-gdown
+ python-h5py
+ python-lenstronomy
+ python-matplotlib
+ python-numpy
+ python-pyyaml
+ python-schwimmbad
+ python-scipy
+ python-tqdm
+ #;tensorflow)) ;XXX: currenlty broken on master, see guix/guix#1436.
+ (home-page "https://github.com/ajshajib/dolphin")
+ (synopsis "Automated pipeline for lens modeling based on lenstronomy")
+ (description
+ "This package implements a functionality of AI-powered automated pipeline
+for lens modeling, with lenstronomy as the modeling engine.
+
+Features:
+@itemize
+@item AI-automated forward modeling for large samples of galaxy-scale lenses
+@item flexible: supports both fully automated and semi-automated (with user
+tweaks) modes
+@item multi-band lens modeling made simple
+@item supports both galaxy–galaxy and galaxy–quasar systems
+@item effortless syncing between local machines and @acronym{High-Performance
+Computing Cluster, HPCC}
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-specreduce
(package
(name "python-specreduce")