MCPcopy Index your code
hub / github.com/pydata/xarray / test_write_uneven_dask_chunks

Method test_write_uneven_dask_chunks

xarray/tests/test_backends.py:2882–2887  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2880
2881 @requires_dask
2882 def test_write_uneven_dask_chunks(self) -> None:
2883 # regression for GH#2225
2884 original = create_test_data().chunk({"dim1": 3, "dim2": 4, "dim3": 3})
2885 with self.roundtrip(original, open_kwargs={"chunks": {}}) as actual:
2886 for k, v in actual.data_vars.items():
2887 assert v.chunks == actual[k].chunks
2888
2889 def test_chunk_encoding(self) -> None:
2890 # These datasets have no dask chunks. All chunking specified in

Callers

nothing calls this directly

Calls 4

roundtripMethod · 0.95
create_test_dataFunction · 0.85
itemsMethod · 0.80
chunkMethod · 0.45

Tested by

no test coverage detected