(self)
| 421 | assert_array_equal(arr_view, expected) |
| 422 | |
| 423 | def test_2d_with_axis(self): |
| 424 | i, j = np.ogrid[:3, :4] |
| 425 | arr = 10*i + j |
| 426 | arr_view = sliding_window_view(arr, 3, 0) |
| 427 | expected = np.array([[[0, 10, 20], |
| 428 | [1, 11, 21], |
| 429 | [2, 12, 22], |
| 430 | [3, 13, 23]]]) |
| 431 | assert_array_equal(arr_view, expected) |
| 432 | |
| 433 | def test_2d_repeated_axis(self): |
| 434 | i, j = np.ogrid[:3, :4] |
nothing calls this directly
no test coverage detected