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

Function test_slicing_with_ellipsis

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

Source from the content-addressed store, hash-verified

1989
1990
1991def test_slicing_with_ellipsis():
1992 x = np.arange(256).reshape((4, 4, 4, 4))
1993 d = da.from_array(x, chunks=((2, 2, 2, 2)))
1994
1995 assert_eq(d[..., 1], x[..., 1])
1996 assert_eq(d[0, ..., 1], x[0, ..., 1])
1997
1998
1999def test_slicing_with_ndarray():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
reshapeMethod · 0.80
arangeMethod · 0.45

Tested by

no test coverage detected