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

Function test_periodic

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

Source from the content-addressed store, hash-verified

149
150
151def test_periodic():
152 x = np.arange(64).reshape((8, 8))
153 d = da.from_array(x, chunks=(4, 4))
154
155 e = periodic(d, axis=0, depth=2)
156 assert e.shape[0] == d.shape[0] + 4
157 assert e.shape[1] == d.shape[1]
158
159 assert_eq(e[1, :], d[-1, :])
160 assert_eq(e[0, :], d[-2, :])
161
162
163def test_reflect():

Callers

nothing calls this directly

Calls 4

periodicFunction · 0.90
assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected