()
| 1989 | |
| 1990 | |
| 1991 | def 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 | |
| 1999 | def test_slicing_with_ndarray(): |