MCPcopy Index your code
hub / github.com/dask/dask / test_array_copy_noop

Function test_array_copy_noop

dask/array/tests/test_array_core.py:3001–3007  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

2999
3000@pytest.mark.parametrize("chunks", [-1, 2])
3001def test_array_copy_noop(chunks):
3002 # Regression test for https://github.com/dask/dask/issues/9533
3003 # Which is a revert of the solution for https://github.com/dask/dask/issues/3751
3004 x = np.arange(10)
3005 y = da.from_array(x, chunks=chunks)
3006 y_c = y.copy()
3007 assert y.name == y_c.name
3008
3009
3010def test_from_array_dask_array():

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…