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

Function test_none_boundaries

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

Source from the content-addressed store, hash-verified

682
683
684def test_none_boundaries():
685 x = da.from_array(np.arange(16).reshape(4, 4), chunks=(2, 2))
686 exp = boundaries(x, 2, {0: "none", 1: 33})
687 res = np.array(
688 [
689 [33, 33, 0, 1, 2, 3, 33, 33],
690 [33, 33, 4, 5, 6, 7, 33, 33],
691 [33, 33, 8, 9, 10, 11, 33, 33],
692 [33, 33, 12, 13, 14, 15, 33, 33],
693 ]
694 )
695 assert_eq(exp, res)
696
697
698def test_overlap_small():

Callers

nothing calls this directly

Calls 4

boundariesFunction · 0.90
assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected