- cziread: fallback for when tile indices do not work
This commit is contained in:
3
ndbioimage/readers/cziread.py
Normal file → Executable file
3
ndbioimage/readers/cziread.py
Normal file → Executable file
@@ -199,7 +199,10 @@ class Reader(AbstractReader, ABC):
|
|||||||
for i, j, k, m in zip(directory_entry.start, self.reader.start, tile.shape, axes_min)
|
for i, j, k, m in zip(directory_entry.start, self.reader.start, tile.shape, axes_min)
|
||||||
]
|
]
|
||||||
index = tuple(index[self.reader.axes.index(i)] for i in "YX")
|
index = tuple(index[self.reader.axes.index(i)] for i in "YX")
|
||||||
|
try:
|
||||||
f[index] = tile.squeeze()
|
f[index] = tile.squeeze()
|
||||||
|
except ValueError:
|
||||||
|
f = tile.squeeze()
|
||||||
return f
|
return f
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "ndbioimage"
|
name = "ndbioimage"
|
||||||
version = "2026.3.0"
|
version = "2026.3.1"
|
||||||
description = "Bio image reading, metadata and some affine registration."
|
description = "Bio image reading, metadata and some affine registration."
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "W. Pomp", email = "w.pomp@nki.nl" }
|
{ name = "W. Pomp", email = "w.pomp@nki.nl" }
|
||||||
|
|||||||
Reference in New Issue
Block a user