MCPcopy
hub / github.com/dask/dask / test_nearest_overlap

Function test_nearest_overlap

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

Source from the content-addressed store, hash-verified

601
602
603def test_nearest_overlap():
604 a = np.arange(144).reshape(12, 12).astype(float)
605
606 darr = da.from_array(a, chunks=(6, 6))
607 garr = overlap(darr, depth={0: 5, 1: 5}, boundary={0: "nearest", 1: "nearest"})
608 tarr = trim_internal(garr, {0: 5, 1: 5}, boundary="nearest")
609 assert_eq(tarr, a)
610
611
612@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 6

overlapFunction · 0.90
trim_internalFunction · 0.90
assert_eqFunction · 0.90
reshapeMethod · 0.80
astypeMethod · 0.45
arangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…