- fix split_path_series.

This commit is contained in:
Wim Pomp
2024-03-19 15:47:28 +01:00
parent 5345e38d3c
commit a805613390
2 changed files with 2 additions and 2 deletions

View File

@@ -913,7 +913,7 @@ class Imread(np.lib.mixins.NDArrayOperatorsMixin, ABC):
def split_path_series(path): def split_path_series(path):
if isinstance(path, str): if isinstance(path, str):
path = Path(path) path = Path(path)
if isinstance(path, Path) and path.name.startswith('Pos'): if isinstance(path, Path) and path.name.startswith('Pos') and path.name.lstrip('Pos').isdigit():
return path.parent, int(path.name.lstrip('Pos')) return path.parent, int(path.name.lstrip('Pos'))
return path, 0 return path, 0

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "ndbioimage" name = "ndbioimage"
version = "2024.3.4" version = "2024.3.5"
description = "Bio image reading, metadata and some affine registration." description = "Bio image reading, metadata and some affine registration."
authors = ["W. Pomp <w.pomp@nki.nl>"] authors = ["W. Pomp <w.pomp@nki.nl>"]
license = "GPLv3" license = "GPLv3"