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

Function test_reshape

dask/array/tests/test_array_core.py:1504–1514  ·  view source on GitHub ↗
(original_shape, new_shape, chunks)

Source from the content-addressed store, hash-verified

1502 ],
1503)
1504def test_reshape(original_shape, new_shape, chunks):
1505 x = np.random.default_rng().integers(10, size=original_shape)
1506 a = from_array(x, chunks=chunks)
1507
1508 xr = x.reshape(new_shape)
1509 ar = a.reshape(new_shape)
1510
1511 if a.shape == new_shape:
1512 assert a is ar
1513
1514 assert_eq(xr, ar)
1515
1516
1517def test_reshape_exceptions():

Callers

nothing calls this directly

Calls 4

from_arrayFunction · 0.90
assert_eqFunction · 0.90
reshapeMethod · 0.80
integersMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…