Skip to content

Commit

Permalink
Merge branch 'mypy-1.6' of github.com:scalableminds/webknossos-libs i…
Browse files Browse the repository at this point in the history
…nto mypy-1.6
  • Loading branch information
normanrz committed Oct 24, 2023
2 parents a9f30ab + a58b9bf commit 4ee5483
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion cluster_tools/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/) `MAJOR.MIN
For upgrade instructions, please check the respective *Breaking Changes* sections.

## Unreleased
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.2...HEAD)
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.3...HEAD)

### Breaking Changes

Expand All @@ -18,6 +18,10 @@ For upgrade instructions, please check the respective *Breaking Changes* section
### Fixed


## [0.14.3](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.3) - 2023-10-19
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.2...v0.14.3)


## [0.14.2](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.2) - 2023-10-18
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.1...v0.14.2)

Expand Down
10 changes: 9 additions & 1 deletion webknossos/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/) `MAJOR.MIN
For upgrade instructions, please check the respective _Breaking Changes_ sections.

## Unreleased
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.2...HEAD)
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.3...HEAD)

### Breaking Changes

Expand All @@ -21,6 +21,14 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
### Fixed


## [0.14.3](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.14.3) - 2023-10-19
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.2...v0.14.3)

### 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
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.14.1...v0.14.2)

Expand Down
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 4ee5483

Please sign in to comment.