comparison validators.xml @ 7:048545339ced draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
author imgteam
date Tue, 06 Jan 2026 09:25:17 +0000
parents 5530132d500e
children
comparison
equal deleted inserted replaced
6:8e3a52b74876 7:048545339ced
30 --> 30 -->
31 <validator type="expression" message="Dataset is a 3-D image" 31 <validator type="expression" message="Dataset is a 3-D image"
32 ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) < 2]]></validator> 32 ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) < 2]]></validator>
33 </xml> 33 </xml>
34 34
35 <xml name="validators/is_3d">
36 <!--
37 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
38 hence not inherit the metadata fields like `depth`. To cope with that, we allow all datasets
39 except those where we *know* that they are *not* 3-D.
40 -->
41 <validator type="expression" message="Dataset is a 2-D image"
42 ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) >= 2]]></validator>
43 </xml>
44
35 <xml name="validators/is_binary"> 45 <xml name="validators/is_binary">
36 <!-- 46 <!--
37 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does 47 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
38 hence not inherit the metadata fields like `num_unique_values`. To cope with that, we allow all 48 hence not inherit the metadata fields like `num_unique_values`. To cope with that, we allow all
39 datasets except those where we *know* that they are *not* binary. 49 datasets except those where we *know* that they are *not* binary.