From 1179ee869f2c4520506a1a253246423dd679da36 Mon Sep 17 00:00:00 2001 From: Dany Date: Fri, 14 Jun 2024 21:30:16 +0200 Subject: [PATCH] Update __init__.py --- sources/tifffile/large_image_source_tifffile/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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