From d4c754da1b953147db8a18cea8b7632b56e95972 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 10 Jan 2023 17:39:06 -0500 Subject: [PATCH] Improve tifffile associated image detection. --- CHANGELOG.md | 5 +++++ sources/tifffile/large_image_source_tifffile/__init__.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54a01de23..3c24e1354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 1.19.1 + +### Improvements +- Improve tifffile associated image detection ([#1019](../../pull/1019)) + ## 1.19.0 ### Features diff --git a/sources/tifffile/large_image_source_tifffile/__init__.py b/sources/tifffile/large_image_source_tifffile/__init__.py index 7afb1db97..0ec673cd9 100644 --- a/sources/tifffile/large_image_source_tifffile/__init__.py +++ b/sources/tifffile/large_image_source_tifffile/__init__.py @@ -168,6 +168,8 @@ def _findMatchingSeries(self): self._seriesShape = [] for idx, s in enumerate(self._tf.series): if s != base: + if s.name.lower() in {'label', 'macro', 'thumbnail', 'map'}: + continue if 'P' in base.axes or s.axes != base.axes: continue if not all(base.axes[sidx] in 'YX' or sl == base.shape[sidx]