(output_chunks, window_shape, axis)
| 922 | ], |
| 923 | ) |
| 924 | def test_sliding_window_view_chunking(output_chunks, window_shape, axis): |
| 925 | arr = np.random.randn(50, 50, 50) |
| 926 | darr = da.from_array(arr, chunks=(25, 25, 25)) |
| 927 | result = sliding_window_view(darr, window_shape, axis, automatic_rechunk=True) |
| 928 | assert result.chunks == output_chunks |
| 929 | expected = np.lib.stride_tricks.sliding_window_view(arr, window_shape, axis) |
| 930 | assert_eq(result, expected) |
| 931 | |
| 932 | |
| 933 | def test_sliding_window_view_no_chunking(): |
nothing calls this directly
no test coverage detected