mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Rename has_image_labels to has_image_n_labels
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -2253,7 +2253,7 @@ module.
|
||||
<xs:element name="has_image_channels" type="AssertHasImageChannels" />
|
||||
<xs:element name="has_image_mean_intensity" type="AssertHasImageMeanIntensity" />
|
||||
<xs:element name="has_image_center_of_mass" type="AssertHasImageCenterOfMass" />
|
||||
<xs:element name="has_image_labels" type="AssertHasImageLabels" />
|
||||
<xs:element name="has_image_n_labels" type="AssertHasImageNLabels" />
|
||||
<xs:element name="has_image_mean_object_size" type="AssertHasImageMeanObjectSize" />
|
||||
</xs:choice>
|
||||
</xs:group>
|
||||
@@ -2918,18 +2918,18 @@ $attribute_list::5
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AssertHasImageLabels">
|
||||
<xs:complexType name="AssertHasImageNLabels">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="en"><![CDATA[
|
||||
Asserts the output is an image and has the specified number of labels, or unique values (e.g.,
|
||||
``<has_image_labels value="187" exclude_labels="0" />``).
|
||||
``<has_image_n_labels n="187" exclude_labels="0" />``).
|
||||
The primary usage of this assertion is to verify the number of objects in images with uniquely labeled objects.
|
||||
|
||||
$attribute_list::5
|
||||
]]>
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:attribute name="value" type="xs:integer" use="optional">
|
||||
<xs:attribute name="n" type="xs:integer" use="optional">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="en">Expected number of labels.`</xs:documentation>
|
||||
</xs:annotation>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<has_image_width width="32" />
|
||||
<has_image_height height="32" />
|
||||
<has_image_channels channels="1" />
|
||||
<has_image_labels value="1" exclude_labels="0" />
|
||||
<has_image_n_labels n="1" exclude_labels="0" />
|
||||
<has_image_mean_object_size mean_object_size="256" exclude_labels="0" />
|
||||
</assert_contents>
|
||||
</output>
|
||||
@@ -113,7 +113,7 @@
|
||||
<has_image_width width="32" />
|
||||
<has_image_height height="32" />
|
||||
<has_image_channels channels="1" />
|
||||
<has_image_labels value="2" />
|
||||
<has_image_n_labels n="2" />
|
||||
<has_image_mean_object_size mean_object_size="512" />
|
||||
</assert_contents>
|
||||
</output>
|
||||
@@ -149,7 +149,7 @@
|
||||
<has_image_width width="32" />
|
||||
<has_image_height height="32" />
|
||||
<has_image_channels channels="1" />
|
||||
<has_image_labels value="2" />
|
||||
<has_image_n_labels n="2" />
|
||||
<has_image_mean_object_size mean_object_size="511" eps="1.0" />
|
||||
</assert_contents>
|
||||
</output>
|
||||
|
||||
Reference in New Issue
Block a user