()
| 601 | |
| 602 | |
| 603 | def test_nearest_overlap(): |
| 604 | a = np.arange(144).reshape(12, 12).astype(float) |
| 605 | |
| 606 | darr = da.from_array(a, chunks=(6, 6)) |
| 607 | garr = overlap(darr, depth={0: 5, 1: 5}, boundary={0: "nearest", 1: "nearest"}) |
| 608 | tarr = trim_internal(garr, {0: 5, 1: 5}, boundary="nearest") |
| 609 | assert_eq(tarr, a) |
| 610 | |
| 611 | |
| 612 | @pytest.mark.parametrize( |