From afc2e8afd93d7fb00d3871372af4b5576e6cd7cb Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Tue, 3 Dec 2024 20:44:37 -0500 Subject: [PATCH] Move imports from zarr router --- xpublish/plugins/included/zarr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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')