diff --git a/ndbioimage/__init__.py b/ndbioimage/__init__.py index c4b1247..3d425d3 100755 --- a/ndbioimage/__init__.py +++ b/ndbioimage/__init__.py @@ -913,7 +913,7 @@ class Imread(np.lib.mixins.NDArrayOperatorsMixin, ABC): def split_path_series(path): if isinstance(path, str): 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, 0 diff --git a/pyproject.toml b/pyproject.toml index e7b64bf..623abdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ndbioimage" -version = "2024.3.4" +version = "2024.3.5" description = "Bio image reading, metadata and some affine registration." authors = ["W. Pomp "] license = "GPLv3"