diff --git a/xpublish/plugins/included/zarr.py b/xpublish/plugins/included/zarr.py index 15f40e5..d89709d 100644 --- a/xpublish/plugins/included/zarr.py +++ b/xpublish/plugins/included/zarr.py @@ -5,7 +5,6 @@ import xarray as xr from fastapi import APIRouter, Depends, HTTPException, Path from starlette.responses import Response # type: ignore -from zarr.storage import array_meta_key, attrs_key, group_meta_key # type: ignore from xpublish.utils.api import JSONResponse @@ -13,12 +12,15 @@ from ...utils.cache import CostTimer from ...utils.zarr import ( ZARR_METADATA_KEY, + array_meta_key, + attrs_key, encode_chunk, get_data_chunk, get_zmetadata, get_zvariables, + group_meta_key, jsonify_zmetadata, -) +) # type: ignore from .. import Dependencies, Plugin, hookimpl logger = logging.getLogger('zarr_api')