aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-04-19 14:10:03 +0200
committerRicardo Wurmus <rekado@elephly.net>2024-04-22 11:29:30 +0200
commitfbfd58b5bf8001642a1019c5231b7d20a098cb45 (patch)
tree94093789f2c936594101791824fc1616bc8e0ca6
parent7ca1a0203080840ddb2070f63a85ce2c76136709 (diff)
downloadguix-fbfd58b5bf8001642a1019c5231b7d20a098cb45.tar
guix-fbfd58b5bf8001642a1019c5231b7d20a098cb45.tar.gz
gnu: Add python-pims.
* gnu/packages/image-processing.scm (python-pims): New variable. Change-Id: I33e89dd865a38b526a1f766cf321a6c67a170a36
-rw-r--r--gnu/packages/image-processing.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 00b6311c23..ceef83f3b1 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1704,6 +1704,46 @@ purposes.")
segmentation.")
(license license:expat)))
+(define-public python-pims
+ (package
+ (name "python-pims")
+ (version "0.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PIMS" version))
+ (sha256
+ (base32 "0fsg353mbbj1ad06nwrp8p9xcrzy6rca6b52nvlbraaf3m309dz2"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; We don't have all the (sometimes very large) data files, so we skip
+ ;; these tests.
+ '(list "--ignore=pims/tests/test_imseq.py"
+ "--ignore=pims/tests/test_norpix.py"
+ "-k"
+ (string-append " not TestImageReaderTIFF"
+ " and not TestOpenFiles"
+ " and not TestSpeStack"
+ " and not TestTiffStack_pil"
+ " and not TestTiffStack_tifffile"
+ " and not TestVideo_ImageIO"))))
+ (propagated-inputs
+ (list python-imageio python-numpy python-slicerator))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/soft-matter/pims")
+ (synopsis "Python Image Sequence")
+ (description "Scientific video can be packaged in various ways: familiar
+video formats like @file{.AVI} and @file{.MOV}, folders full of numbered
+images, or \"stacks\" of TIFF images. Each of these requires a separate
+Python module. And, once loaded, they have different methods for accessing
+individual images, looping through the images in bulk, accessing a specific
+range, or dealing with multidimensional files. PIMS can do all of these using
+a consistent interface, handling the differences between different inputs
+invisibly.")
+ (license license:bsd-3)))
+
(define-public python-spatial-image
(package
(name "python-spatial-image")