MCPcopy Create free account
hub / github.com/dask/dask / test_sliding_window_view_chunking

Function test_sliding_window_view_chunking

dask/array/tests/test_overlap.py:924–930  ·  view source on GitHub ↗
(output_chunks, window_shape, axis)

Source from the content-addressed store, hash-verified

922 ],
923)
924def 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
933def test_sliding_window_view_no_chunking():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
sliding_window_viewFunction · 0.50

Tested by

no test coverage detected