MCPcopy Create free account
hub / github.com/dask/dask / test_map_overlap_rechunks_array_if_needed

Function test_map_overlap_rechunks_array_if_needed

dask/array/tests/test_overlap.py:797–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

795
796
797def test_map_overlap_rechunks_array_if_needed():
798 # https://github.com/dask/dask/issues/6597
799 expected = np.arange(11)
800 x = da.from_array(expected, chunks=5)
801 y = x.map_overlap(lambda x: x, depth=2, boundary=0)
802 assert all(c >= 2 for c in y.chunks[0])
803 assert_eq(y, expected)
804
805
806def test_map_overlap_rechunks_array_along_multiple_dims_if_needed():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
allFunction · 0.85
arangeMethod · 0.45
map_overlapMethod · 0.45

Tested by

no test coverage detected