- fix split_path_series.
This commit is contained in:
1 parent
5345e38d3c
commit
a805613390
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user