Mercurial > repos > imgteam > 2d_feature_extraction
comparison validators.xml @ 10:519fad2c552a 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:53 +0000 |
| parents | 0b5ddf7b2924 |
| children |
comparison
equal
deleted
inserted
replaced
| 9:45076fd788c9 | 10:519fad2c552a |
|---|---|
| 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. |
