Skip to content

Commit

Permalink
fixes bug in fsstore-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Oct 19, 2023
1 parent 24c974a commit 5ddf11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webknossos/webknossos/dataset/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 5ddf11a

Please sign in to comment.