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

Function test_smooth_chunks_not_divisible

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

Source from the content-addressed store, hash-verified

240
241
242def test_smooth_chunks_not_divisible():
243 ii = 2
244 ileft = 1
245 result_inchunks = [None, (1,) * 36, (9,)]
246 result_in = _smooth_chunks(ileft, ii, 6, result_inchunks)
247 expected_in = [None, (1,) * 36, (4, 5)]
248 assert result_in == expected_in
249
250
251def test_smooth_chunks_first_dimension():

Callers

nothing calls this directly

Calls 1

_smooth_chunksFunction · 0.90

Tested by

no test coverage detected