MCPcopy Create free account
hub / github.com/pydata/xarray / test_zarr_region_auto

Method test_zarr_region_auto

xarray/tests/test_backends.py:7794–7802  ·  view source on GitHub ↗
(self, region)

Source from the content-addressed store, hash-verified

7792 ],
7793 )
7794 def test_zarr_region_auto(self, region):
7795 with self.create() as (target, ds):
7796 ds_region = 1 + ds.isel(x=slice(2, 4), y=slice(6, 8))
7797 self.save(target, ds_region, region=region)
7798 ds_updated = xr.open_zarr(target)
7799
7800 expected = ds.copy()
7801 expected["test"][2:4, 6:8] += 1
7802 assert_identical(ds_updated, expected)
7803
7804 def test_zarr_region_auto_noncontiguous(self):
7805 with self.create() as (target, ds):

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
saveMethod · 0.95
assert_identicalFunction · 0.90
iselMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected