Skip to content

Commit 4022a04

Browse files
committed
uv.lock: update dependencies
This enables Zarr v3 with Python versions that are compatible.
1 parent fee74d9 commit 4022a04

3 files changed

Lines changed: 741 additions & 392 deletions

File tree

src/odc/loader/test_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
def _full_tyx_bins(
4343
tiles: GeoboxTiles, nsrcs=1, nt=1
4444
) -> Dict[tuple[int, int, int], list[int]]:
45-
return {idx: list(range(nsrcs)) for idx in np.ndindex((nt, *tiles.shape.yx))} # type: ignore
45+
return {idx: list(range(nsrcs)) for idx in np.ndindex((nt, *tiles.shape.yx))}
4646

4747

4848
def _num_chunks(chunk: int, sz: int) -> int:

src/odc/loader/test_memreader.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import annotations
66

77
import json
8+
import sys
89
from datetime import datetime
910

1011
import numpy as np
@@ -215,6 +216,10 @@ def test_raster_group_md() -> None:
215216
assert rgm.extra_coords[0] == coord
216217

217218

219+
@pytest.mark.skipif(
220+
sys.version_info >= (3, 11),
221+
reason="Zarr 3 does not currently support consolidated metadata",
222+
)
218223
def test_memreader_zarr(sample_ds: xr.Dataset) -> None:
219224
assert isinstance(sample_ds.odc, ODCExtensionDs)
220225
assert "xx" in sample_ds

0 commit comments

Comments
 (0)