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

Function test_dstack

dask/array/tests/test_routines.py:1646–1657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1644
1645
1646def test_dstack():
1647 x = np.arange(5)
1648 y = np.ones(5)
1649 a = da.arange(5, chunks=2)
1650 b = da.ones(5, chunks=2)
1651
1652 assert_eq(
1653 np.dstack((x[None, None, :], y[None, None, :])),
1654 da.dstack((a[None, None, :], b[None, None, :])),
1655 )
1656 assert_eq(np.dstack((x[None, :], y[None, :])), da.dstack((a[None, :], b[None, :])))
1657 assert_eq(np.dstack((x, y)), da.dstack((a, b)))
1658
1659
1660@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
arangeMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected