Skip to content

Commit be3fe88

Browse files
committed
use level=0 in tiff import
1 parent f942453 commit be3fe88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webknossos/webknossos/dataset/_utils/pims_tiff_reader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def get_frame_2D(self, **ind: int) -> np.ndarray:
162162
# zarr-python as a dependency. So we just implement the indexing
163163
# ourselves and rely on the fact that tifffile isn't using more
164164
# complex zarr features such as compressors, filters, F-order, fillvalue etc.
165-
zarr_store = _tiff.aszarr()
165+
zarr_store = _tiff.aszarr(
166+
level=0
167+
) # for multi-scale tiffs, we use the highest resolution
166168
zarray = json.loads(zarr_store[".zarray"])
167169

168170
assert zarray["zarr_format"] == 2

0 commit comments

Comments
 (0)