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

Function test_from_array_copies

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

Source from the content-addressed store, hash-verified

6101
6102
6103def test_from_array_copies():
6104 x = np.arange(60).reshape((6, 10))
6105 original_array = x.copy()
6106 chunks = (2, 3)
6107 dx = da.from_array(x, chunks=chunks)
6108 x[2:4, x[0] > 3] = -5
6109 assert_eq(original_array, dx)
6110
6111
6112def test_from_array_xarray_dataarray():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected