From 76bada927443e9506a84869ad2ba0261e61395ed Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Thu, 25 Jan 2024 11:33:00 -0500 Subject: [PATCH] Fix typo in Flour used to detect non RGB Provided OME TIFF files are now correctly identified as multi-channel images from the OME XML metadata. --- pytools/utils/OMEInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytools/utils/OMEInfo.py b/pytools/utils/OMEInfo.py index a7b4ab1..c2e81a5 100755 --- a/pytools/utils/OMEInfo.py +++ b/pytools/utils/OMEInfo.py @@ -45,7 +45,7 @@ def maybe_rgb(self, image_index): three_or_four = len(channel_elements) in [3, 4] def _check_channel(channel_element: ET.Element): - exclude_list_attribs = ["EmissionWavelength", "IlluminationType", "Flour"] + exclude_list_attribs = ["EmissionWavelength", "IlluminationType", "Fluor"] no_rgb_exclude_attrib = all([False for x in exclude_list_attribs if x in channel_element.keys()]) return no_rgb_exclude_attrib and channel_element.attrib["SamplesPerPixel"] == "1"