diff 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
line wrap: on
line diff
--- a/validators.xml	Mon Jan 05 14:35:43 2026 +0000
+++ b/validators.xml	Tue Jan 06 09:25:17 2026 +0000
@@ -32,6 +32,16 @@
             ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) < 2]]></validator>
     </xml>
 
+    <xml name="validators/is_3d">
+        <!--
+        The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
+        hence not inherit the metadata fields like `depth`. To cope with that, we allow all datasets
+        except those where we *know* that they are *not* 3-D.
+        -->
+        <validator type="expression" message="Dataset is a 2-D image"
+            ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) >= 2]]></validator>
+    </xml>
+
     <xml name="validators/is_binary">
         <!--
         The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does