MCPcopy
hub / github.com/dask/dask / test_smooth_chunks

Function test_smooth_chunks

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

Source from the content-addressed store, hash-verified

231
232
233def test_smooth_chunks():
234 ii = 2
235 ileft = 1
236 result_inchunks = [None, (1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (20,)]
237 result_in = _smooth_chunks(ileft, ii, 2, result_inchunks)
238 expected_in = [None, (1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (2, 2, 2, 2, 2, 2, 2, 2, 2, 2)]
239 assert result_in == expected_in
240
241
242def test_smooth_chunks_not_divisible():

Callers

nothing calls this directly

Calls 1

_smooth_chunksFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…