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

Function test_smooth_chunks_large_dimension

dask/array/tests/test_reshape.py:270–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268
269
270def test_smooth_chunks_large_dimension():
271 # Ensure that we properly smooth 2 dimensions
272 ii = 3
273 ileft = 1
274 result_inchunks = [None, (1, 1), (2,), (400,)]
275 result_in = _smooth_chunks(ileft, ii, 4, result_inchunks)
276 expected_in = [None, (1, 1), (1, 1), (4,) * 100]
277 assert result_in == expected_in
278
279
280def test_reshape_not_squashing_chunks():

Callers

nothing calls this directly

Calls 1

_smooth_chunksFunction · 0.90

Tested by

no test coverage detected