changeset 2:4e25befab102 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:12:39 +0000
parents ad795d260ba8
children
files morphological_operations.py morphological_operations.xml
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/morphological_operations.py	Thu Apr 04 15:25:44 2024 +0000
+++ b/morphological_operations.py	Wed Apr 24 08:12:39 2024 +0000
@@ -1,5 +1,6 @@
 import argparse
 
+import giatools.io
 import numpy as np
 import scipy.ndimage as ndi
 import skimage.io
@@ -76,7 +77,7 @@
     parser.add_argument('output', type=str)
     args = parser.parse_args()
 
-    im = skimage.io.imread(args.input)
+    im = giatools.io.imread(args.input)
     assert im.ndim in (2, 3), 'Input image must be two-dimensional and either single-channel or multi-channel.'
 
     if im.ndim == 2:
--- a/morphological_operations.xml	Thu Apr 04 15:25:44 2024 +0000
+++ b/morphological_operations.xml	Wed Apr 24 08:12:39 2024 +0000
@@ -4,7 +4,7 @@
         <import>creators.xml</import>
         <import>tests.xml</import>
         <token name="@TOOL_VERSION@">1.12.0</token>
-        <token name="@VERSION_SUFFIX@">0</token>
+        <token name="@VERSION_SUFFIX@">1</token>
     </macros>
     <creator>
         <expand macro="creators/bmcv"/>
@@ -18,6 +18,7 @@
     <requirements>
         <requirement type="package" version="@TOOL_VERSION@">scipy</requirement>
         <requirement type="package" version="0.22.0">scikit-image</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements>
     <command><![CDATA[