Mercurial > repos > imgteam > image_math
changeset 2:48fa3ac55df2 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/image_math commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:29 +0000 |
parents | f8b7770cbca5 |
children | |
files | image_math.py image_math.xml |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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:
--- 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[