Skip to content

Commit

Permalink
sqme: fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed Jun 24, 2024
1 parent 6f185ba commit 87545bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions odc/loader/test_memreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def test_memreader_zarr(sample_ds: xr.Dataset):
gbox = sample_ds.odc.geobox
chunks = None

md_store = {}
chunk_store = {}
md_store: dict[str, bytes] = {}
chunk_store: dict[str, bytes] = {}
sample_ds.to_zarr(md_store, chunk_store, compute=False, consolidated=True)

assert ".zmetadata" in md_store
Expand Down
11 changes: 6 additions & 5 deletions odc/loader/testing/mem_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ def _resolve_data_array(self) -> xr.DataArray:
return self._xx

assert self._spec is not None
kw = {
"target": self._src.uri,
"chunks": self._ctx.chunks,
}
src_ds = _from_zarr_spec(self._spec, regen_coords=True, **kw)
src_ds = _from_zarr_spec(
self._spec,
regen_coords=True,
target=self._src.uri,
chunks=self._ctx.chunks,
)

if src_ds is None:
raise ValueError("Failed to interpret driver data")
Expand Down

0 comments on commit 87545bc

Please sign in to comment.