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

Function test_setitem_slice_twice

dask/array/tests/test_array_core.py:4287–4298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4285
4286
4287def test_setitem_slice_twice():
4288 x = np.array([1, 2, 3, 4, 5, 6], dtype=int)
4289 val = np.array([0, 0], dtype=int)
4290 y = x.copy()
4291
4292 x[0:2] = val
4293 x[4:6] = val
4294
4295 dx = da.from_array(y)
4296 dx[0:2] = val
4297 dx[4:6] = val
4298 assert_eq(x, dx)
4299
4300
4301def test_setitem_2d():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
copyMethod · 0.45

Tested by

no test coverage detected