Repository 'image_math'
hg clone https://toolshed.g2.bx.psu.edu/repos/imgteam/image_math

Changeset 2:48fa3ac55df2 (2024-04-24)
Previous changeset 1:f8b7770cbca5 (2024-04-04)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/image_math commit c86a1b93cb7732f7331a981d13465653cc1a2790
modified:
image_math.py
image_math.xml
b
diff -r f8b7770cbca5 -r 48fa3ac55df2 image_math.py
--- a/image_math.py Thu Apr 04 15:25:35 2024 +0000
+++ b/image_math.py Wed Apr 24 08:12:29 2024 +0000
[
@@ -2,6 +2,7 @@
 import ast
 import operator
 
+import giatools.io
 import numpy as np
 import skimage.io
 
@@ -77,7 +78,7 @@
     im_shape = None
     for input in args.input:
         name, filepath = input.split(':')
-        im = skimage.io.imread(filepath)
+        im = giatools.io.imread(filepath)
         assert name not in inputs, 'Input name "{name}" is ambiguous.'
         inputs[name] = im
         if im_shape is None:
b
diff -r f8b7770cbca5 -r 48fa3ac55df2 image_math.xml
--- a/image_math.xml Thu Apr 04 15:25:35 2024 +0000
+++ b/image_math.xml Wed Apr 24 08:12:29 2024 +0000
[
@@ -4,7 +4,7 @@
         <import>creators.xml</import>
         <import>tests.xml</import>
         <token name="@TOOL_VERSION@">1.26.4</token>
-        <token name="@VERSION_SUFFIX@">1</token>
+        <token name="@VERSION_SUFFIX@">2</token>
     </macros>
     <creator>
         <expand macro="creators/bmcv"/>
@@ -15,6 +15,7 @@
     <requirements>
         <requirement type="package" version="@TOOL_VERSION@">numpy</requirement>
         <requirement type="package" version="0.22.0">scikit-image</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements>
     <command><![CDATA[