Skip to content

Commit 710d19e

Browse files
committed
Migrate FSStore to FsspecStore
1 parent 49be76e commit 710d19e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
python-version: ${{ matrix.python-version }}
3737

3838
- name: Install Conda environment with Micromamba
39-
uses: mamba-org/setup-micromamba@v2.0.2
39+
uses: mamba-org/setup-micromamba@v1
4040
with:
4141
micromamba-version: latest
4242
environment-name: test

tiledb/bioimg/converters/ome_zarr.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from ome_zarr.reader import OMERO, Multiscales, Reader, ZarrLocation
2525
from ome_zarr.writer import write_multiscale
2626
from zarr.codecs import Blosc
27-
from zarr.storage import FSStore
27+
from zarr.storage import FsspecStore # zarr.storage.FsspecStore
2828
except ImportError as err:
2929
warnings.warn(
3030
"OMEZarr Converter requires 'ome-zarr' package. "
@@ -66,7 +66,9 @@ def __init__(
6666
self._dest_ctx = _get_ctx(dest_ctx, dest_config)
6767
self._dest_cfg = self._dest_ctx.config()
6868
storage_options = translate_config_to_s3fs(self._source_cfg)
69-
input_fh = FSStore(input_path, check=True, create=True, **storage_options)
69+
input_fh = FsspecStore.from_url(
70+
input_path, storage_options=dict(storage_options)
71+
)
7072
self._root_node = next(Reader(ZarrLocation(input_fh))())
7173
self._multiscales = cast(Multiscales, self._root_node.load(Multiscales))
7274
self._omero = cast(Optional[OMERO], self._root_node.load(OMERO))

0 commit comments

Comments
 (0)