(self)
| 399 | |
| 400 | class TestSlidingWindowView: |
| 401 | def test_1d(self): |
| 402 | arr = np.arange(5) |
| 403 | arr_view = sliding_window_view(arr, 2) |
| 404 | expected = np.array([[0, 1], |
| 405 | [1, 2], |
| 406 | [2, 3], |
| 407 | [3, 4]]) |
| 408 | assert_array_equal(arr_view, expected) |
| 409 | |
| 410 | def test_2d(self): |
| 411 | i, j = np.ogrid[:3, :4] |
nothing calls this directly
no test coverage detected