guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 2898527d2a09a2e373ff94675b35747fc6a0f126
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Jul 21 13:18:15 2025 +0100

    gnu: Add python-space-dolphin.
    
    * gnu/packages/astronomy.scm (python-space-dolphin): New variable.
    
    Change-Id: I2185ed6b0c34e95458854f18046e7e47a4170e37
---
 gnu/packages/astronomy.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

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")

Reply via email to