diff --git a/webknossos/Changelog.md b/webknossos/Changelog.md index 6179a0194..46c7ce56b 100644 --- a/webknossos/Changelog.md +++ b/webknossos/Changelog.md @@ -19,6 +19,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section ### Changed ### Fixed +- Fixes bug in FSStore creation when using local paths for zarr data format. [#955](https://github.com/scalableminds/webknossos-libs/pull/955) ## [0.14.2](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.2) - 2023-10-18 diff --git a/webknossos/webknossos/dataset/_array.py b/webknossos/webknossos/dataset/_array.py index 51cbf56c2..a3c3c64eb 100644 --- a/webknossos/webknossos/dataset/_array.py +++ b/webknossos/webknossos/dataset/_array.py @@ -15,7 +15,7 @@ from zarr.storage import FSStore from ..geometry import BoundingBox, Vec3Int, Vec3IntLike -from ..utils import warn_deprecated +from ..utils import is_fs_path, warn_deprecated from .data_format import DataFormat if TYPE_CHECKING: @@ -29,7 +29,7 @@ def _is_power_of_two(num: int) -> bool: def _fsstore_from_path(path: Path, mode: str = "a") -> FSStore: storage_options = {} - if isinstance(path, UPath): + if isinstance(path, UPath) and not is_fs_path(path): storage_options = path._kwargs.copy() storage_options.pop("_url", None) return FSStore(url=str(path), mode=mode, **storage_options)