From 8a81593c5372d1e2b6031e6ae62a820f4ef6857c Mon Sep 17 00:00:00 2001 From: Leonid Kostrykin Date: Wed, 13 Mar 2024 09:34:34 +0000 Subject: [PATCH] Rename `has_image_labels` to `has_image_n_labels` --- lib/galaxy/tool_util/verify/asserts/image.py | 2 +- lib/galaxy/tool_util/xsd/galaxy.xsd | 8 ++++---- test/functional/tools/validation_image.xml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/galaxy/tool_util/verify/asserts/image.py b/lib/galaxy/tool_util/verify/asserts/image.py index 3ebd46095f9..bac607cf3d1 100644 --- a/lib/galaxy/tool_util/verify/asserts/image.py +++ b/lib/galaxy/tool_util/verify/asserts/image.py @@ -238,7 +238,7 @@ def _get_image_labels( return im_arr, present_labels -def assert_has_image_labels( +def assert_has_image_n_labels( output_bytes: bytes, channel: Optional[Union[int, str]] = None, exclude_labels: Optional[Union[str, List[int]]] = None, diff --git a/lib/galaxy/tool_util/xsd/galaxy.xsd b/lib/galaxy/tool_util/xsd/galaxy.xsd index f9d13253511..771d584b030 100644 --- a/lib/galaxy/tool_util/xsd/galaxy.xsd +++ b/lib/galaxy/tool_util/xsd/galaxy.xsd @@ -2253,7 +2253,7 @@ module. - + @@ -2918,18 +2918,18 @@ $attribute_list::5 - + ``). +````). The primary usage of this assertion is to verify the number of objects in images with uniquely labeled objects. $attribute_list::5 ]]> - + Expected number of labels.` diff --git a/test/functional/tools/validation_image.xml b/test/functional/tools/validation_image.xml index dd79503a357..852e78191a1 100644 --- a/test/functional/tools/validation_image.xml +++ b/test/functional/tools/validation_image.xml @@ -101,7 +101,7 @@ - + @@ -113,7 +113,7 @@ - + @@ -149,7 +149,7 @@ - +