Skip to content

Commit

Permalink
fixup! zarr-v3: filters / compressors -> codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Sep 30, 2024
1 parent 7ad4ea2 commit 25692be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2734,9 +2734,9 @@ def test_check_encoding_is_consistent_after_append(self) -> None:
compressor = numcodecs.Blosc()

if have_zarr_v3:
encoding = {"da": {"compressor": compressor}}
else:
encoding = {"da": {"codecs": [compressor]}}
else:
encoding = {"da": {"compressor": compressor}}
ds.to_zarr(store_target, mode="w", encoding=encoding, **self.version_kwargs)
ds_to_append.to_zarr(store_target, append_dim="time", **self.version_kwargs)
actual_ds = xr.open_dataset(
Expand Down

0 comments on commit 25692be

Please sign in to comment.