MCPcopy
hub / github.com/pydata/xarray / test_unify_chunks_shallow_copy

Function test_unify_chunks_shallow_copy

xarray/tests/test_dask.py:1158–1162  ·  view source on GitHub ↗
(obj, transform)

Source from the content-addressed store, hash-verified

1156 "transform", [lambda x: x.compute(), lambda x: x.unify_chunks()]
1157)
1158def test_unify_chunks_shallow_copy(obj, transform):
1159 obj = transform(obj)
1160 unified = obj.unify_chunks()
1161 assert_identical(obj, unified)
1162 # assert obj is not unified
1163
1164
1165@pytest.mark.parametrize("obj", [make_da()])

Callers

nothing calls this directly

Calls 2

assert_identicalFunction · 0.90
unify_chunksMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…