guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

38/57: gnu: Add python-pims.


From: guix-commits
Subject: 38/57: gnu: Add python-pims.
Date: Mon, 22 Apr 2024 05:36:32 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit fbfd58b5bf8001642a1019c5231b7d20a098cb45
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Apr 19 14:10:03 2024 +0200

    gnu: Add python-pims.
    
    * gnu/packages/image-processing.scm (python-pims): New variable.
    
    Change-Id: I33e89dd865a38b526a1f766cf321a6c67a170a36
---
 gnu/packages/image-processing.scm | 40 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]