diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-04-16 15:56:13 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-04-30 13:20:53 +0100 |
| commit | 66fc616261841537514a32668418fcbbe448c651 (patch) | |
| tree | 481cd84cc97441250b8a01c31dd96adeeef63200 | |
| parent | a9f7d407fe55f033a87c6e3f5c0089f9fb28d617 (diff) | |
gnu: Add python-virgodc.
* gnu/packages/astronomy.scm (python-virgodc): New variable.
Change-Id: I12226cf15fe54d38d861910fe5202f29c8ed031d
| -rw-r--r-- | gnu/packages/astronomy.scm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 854a1ddf21..f29d8607df 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -97,6 +97,7 @@ #:use-module (gnu packages machine-learning) #:use-module (gnu packages markup) #:use-module (gnu packages maths) + #:use-module (gnu packages mpi) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages netpbm) @@ -11495,6 +11496,63 @@ cosmological simulations.") @url{https://aeolus.services, Aeolus}") (license license:expat))) +(define-public python-virgodc + (package + (name "python-virgodc") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jchelly/VirgoDC") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01h8n2pg6q8fwfxclx4hj0f56fcndnnvjnl0jhivmwqp2bm1gbgq")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list #$@(map (lambda (test) (string-append "--deselect=virgo/mpi/" + "test_parallel_hdf5.py::" + test)) + ;; ValueError: h5py was built without MPI support, can't + ;; use mpio driver + ;; See: <https://codeberg.org/guix/guix/issues/7638>. + (list "test_collective_read_1d" + "test_collective_read_2d" + "test_collective_read_empty" + "test_collective_read_small_chunks_1d" + "test_collective_read_small_chunks_2d" + "test_collective_write_1d" + "test_collective_write_2d" + "test_collective_write_empty" + "test_collective_write_small_chunks_1d" + "test_collective_write_small_chunks_2d"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir-python + (lambda _ + (chdir "python")))))) + (native-inputs + (list python-pytest + python-setuptools)) + (propagated-inputs + (list python-h5py + python-mpi4py + python-numpy)) + (home-page "https://github.com/jchelly/VirgoDC") + (synopsis "Read routines and examples for the Virgo Data Centre") + (description + "This package provides facilities for reading various formats used to +store snapshots, group catalogues and merger trees in Virgo Consortium +simulations, including older binary formats which can otherwise be difficult +to deal with. + +It also provides a collection of MPI parallel algorithms which can be useful +for dealing with particle data and a few related utility functions.") + (license license:gpl3))) + (define-public python-wiimatch (package (name "python-wiimatch") |
