guix_mirror_bot pushed a commit to branch astro-updates
in repository guix.

commit 22a2bcd57f1a0811633a740f4e1d23a7e3eebe4e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Nov 7 15:09:25 2025 +0000

    gnu: Add python-astromartini.
    
    * gnu/packages/astronomy.scm (python-astromartini): New variable.
    
    Change-Id: Ibea4652ba7b919a97e5791bd266bbd3d89ea3320
---
 gnu/packages/astronomy.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index aa71223f55..7e5307a983 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2759,6 +2759,61 @@ a path (for moving targets) and combining cutouts
 simulated Astronomical data in Python.")
     (license license:expat)))
 
+(define-public python-astromartini
+  (package
+    (name "python-astromartini")
+    (version "2.1.11")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/kyleaoman/martini";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xbddyxnm8vy60x5d9bs3y09d4w1wm3yvyr89zmkapdn4qsxjjmr"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; tests: 2527 passed, 11 skipped, 4 xfailed
+      #:test-flags
+      #~(list "--numprocesses" (number->string (min 8 (parallel-job-count))))))
+    (native-inputs
+     (list python-pytest
+           python-pytest-xdist
+           python-setuptools))
+    (propagated-inputs
+     (list python-astropy
+           python-numpy
+           python-scipy
+           python-tqdm
+           ;; [optional]
+           ;; python-eaglesqltools
+           ;; python-gizmo-analysis
+           python-h5py
+           ;; python-halo-analysis
+           ;; python-hdecompose
+           ;; python-pyread-eagle
+           python-requests
+           ;; python-swiftgalaxy
+           ;; python-swiftsimio
+           ;; python-utilities-awetzel
+           #;python-velociraptor))
+    (home-page "https://github.com/kyleaoman/martini";)
+    (synopsis "Synthetic datacube creation from simulations")
+    (description
+     "MARTINI is a modular package for the creation of synthetic resolved HI
+line observations (data cubes) of smoothed-particle hydrodynamics simulations
+of galaxies.  The various aspects of the mock-observing process are divided
+logically into sub-modules handling the data cube, source, beam,
+noise,spectral model and SPH kernel.  MARTINI is object-oriented: each
+sub-module provides a class (or classes) which can be configured as desired.
+For most sub-modules, base classes are provided to allow for straightforward
+customization.  Instances of each sub-module class are given as parameters to
+the Martini class; a mock observation is then constructed by calling a handful
+of functions to execute the desired steps in the mock-observing process.")
+    (license license:gpl3)))
+
 (define-public python-astroml
   (package
     (name "python-astroml")

Reply via email to