(self)
| 414 | |
| 415 | class TestSlidingWindowView: |
| 416 | def test_1d(self): |
| 417 | arr = np.arange(5) |
| 418 | arr_view = sliding_window_view(arr, 2) |
| 419 | expected = np.array([[0, 1], |
| 420 | [1, 2], |
| 421 | [2, 3], |
| 422 | [3, 4]]) |
| 423 | assert_array_equal(arr_view, expected) |
| 424 | |
| 425 | def test_2d(self): |
| 426 | i, j = np.ogrid[:3, :4] |
nothing calls this directly
no test coverage detected