Skip to content

Commit

Permalink
Update import we dont need
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 21, 2024
1 parent d0b6bfb commit b7dc5f5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions virtualizarr/writers/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ def to_zarr_json(var: Variable, array_dir: Path) -> None:
def zarr_v3_array_metadata(zarray: ZArray, dim_names: list[str], attrs: dict) -> dict:
"""Construct a v3-compliant metadata dict from v2 zarray + information stored on the xarray variable."""
# TODO it would be nice if we could use the zarr-python metadata.ArrayMetadata classes to do this conversion for us
try:
from zarr.core.metadata.v3 import ArrayV3Metadata
except ImportError:
raise ImportError("zarr-python v3+ must be installed to use this function")

metadata = zarray.dict()

# adjust to match v3 spec
Expand Down

0 comments on commit b7dc5f5

Please sign in to comment.