Skip to content

Commit 49be76e

Browse files
committed
Change import for Zarr
1 parent 503f0cd commit 49be76e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tiledb/bioimg/converters/ome_zarr.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +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
2728
except ImportError as err:
2829
warnings.warn(
2930
"OMEZarr Converter requires 'ome-zarr' package. "
@@ -65,9 +66,7 @@ def __init__(
6566
self._dest_ctx = _get_ctx(dest_ctx, dest_config)
6667
self._dest_cfg = self._dest_ctx.config()
6768
storage_options = translate_config_to_s3fs(self._source_cfg)
68-
input_fh = zarr.storage.FSStore(
69-
input_path, check=True, create=True, **storage_options
70-
)
69+
input_fh = FSStore(input_path, check=True, create=True, **storage_options)
7170
self._root_node = next(Reader(ZarrLocation(input_fh))())
7271
self._multiscales = cast(Multiscales, self._root_node.load(Multiscales))
7372
self._omero = cast(Optional[OMERO], self._root_node.load(OMERO))

0 commit comments

Comments
 (0)