diff --git a/sources/tifffile/large_image_source_tifffile/__init__.py b/sources/tifffile/large_image_source_tifffile/__init__.py index 613e7015e..be191cfa0 100644 --- a/sources/tifffile/large_image_source_tifffile/__init__.py +++ b/sources/tifffile/large_image_source_tifffile/__init__.py @@ -180,7 +180,7 @@ def _biggestSeries(self): ex = 'no maximum series' try: for idx, s in enumerate(self._tf.series): - samples = np.prod(s.shape) + samples = np.prod(np.sqrt(s.shape)) if samples > maxsamples and 'X' in s.axes and 'Y' in s.axes: maxseries = idx maxsamples = samples