Skip to content

Commit

Permalink
- fix split_path_series.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Pomp committed Mar 19, 2024
1 parent 5345e38 commit a805613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ndbioimage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def with_transform(self, channels=True, drift=False, file=None, bead_files=()):
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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <w.pomp@nki.nl>"]
license = "GPLv3"
Expand Down

0 comments on commit a805613

Please sign in to comment.