()
| 682 | |
| 683 | |
| 684 | def test_none_boundaries(): |
| 685 | x = da.from_array(np.arange(16).reshape(4, 4), chunks=(2, 2)) |
| 686 | exp = boundaries(x, 2, {0: "none", 1: 33}) |
| 687 | res = np.array( |
| 688 | [ |
| 689 | [33, 33, 0, 1, 2, 3, 33, 33], |
| 690 | [33, 33, 4, 5, 6, 7, 33, 33], |
| 691 | [33, 33, 8, 9, 10, 11, 33, 33], |
| 692 | [33, 33, 12, 13, 14, 15, 33, 33], |
| 693 | ] |
| 694 | ) |
| 695 | assert_eq(exp, res) |
| 696 | |
| 697 | |
| 698 | def test_overlap_small(): |
nothing calls this directly
no test coverage detected