Skip to content

Commit

Permalink
Move imports from zarr router
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Dec 4, 2024
1 parent 985f2e5 commit afc2e8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xpublish/plugins/included/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
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

from ...utils.api import DATASET_ID_ATTR_KEY
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')
Expand Down

0 comments on commit afc2e8a

Please # to comment.