()
| 3372 | |
| 3373 | |
| 3374 | def test_point_slicing(): |
| 3375 | x = np.arange(56).reshape((7, 8)) |
| 3376 | d = da.from_array(x, chunks=(3, 4)) |
| 3377 | |
| 3378 | result = d.vindex[[1, 2, 5, 5], [3, 1, 6, 1]] |
| 3379 | assert_eq(result, x[[1, 2, 5, 5], [3, 1, 6, 1]]) |
| 3380 | |
| 3381 | result = d.vindex[[0, 1, 6, 0], [0, 1, 0, 7]] |
| 3382 | assert_eq(result, x[[0, 1, 6, 0], [0, 1, 0, 7]]) |
| 3383 | assert same_keys(result, d.vindex[[0, 1, 6, 0], [0, 1, 0, 7]]) |
| 3384 | |
| 3385 | |
| 3386 | def test_point_slicing_with_full_slice(): |