From 81a27060093e90a10cdcdc2bbfc183fbf8d908dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:38:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/tests/test_backends.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 430cbb0b01..68470b201d 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -6259,10 +6259,10 @@ def test_zarr_safe_chunk_region(tmp_path): # Test if the code is detecting the last chunk correctly data = np.random.RandomState(0).randn(2920, 25, 53) - ds = xr.Dataset({'temperature': (('time', 'lat', 'lon'), data)}) - chunks = {'time': 1000, 'lat': 25, 'lon': 53} + ds = xr.Dataset({"temperature": (("time", "lat", "lon"), data)}) + chunks = {"time": 1000, "lat": 25, "lon": 53} ds.chunk(chunks).to_zarr(store, compute=False) - region = {'time': slice(1000, 2000, 1)} + region = {"time": slice(1000, 2000, 1)} chunk = ds.isel(region) chunk = chunk.chunk() chunk.chunk().to_zarr(store, region=region)