()
| 506 | |
| 507 | |
| 508 | def test_empty_list(): |
| 509 | x = np.ones((5, 5, 5), dtype="i4") |
| 510 | dx = da.from_array(x, chunks=2) |
| 511 | |
| 512 | assert_eq(dx[[], :3, :2], x[[], :3, :2]) |
| 513 | assert_eq(dx[:3, [], :2], x[:3, [], :2]) |
| 514 | assert_eq(dx[:3, :2, []], x[:3, :2, []]) |
| 515 | |
| 516 | |
| 517 | def test_uneven_chunks(): |