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

Function test_smooth_chunks_first_dimension

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

Source from the content-addressed store, hash-verified

249
250
251def test_smooth_chunks_first_dimension():
252 ii = 1
253 ileft = 0
254 result_inchunks = [
255 (1, 1, 3, 1, 1, 3),
256 (6,),
257 (
258 3,
259 3,
260 ),
261 ]
262 result_in = _smooth_chunks(ileft, ii, 12, result_inchunks)
263 expected_in = [(1, 1, 1, 2, 1, 1, 1, 2), (6,), (3, 3)]
264 assert result_in == expected_in
265 result_in = _smooth_chunks(ileft, ii, 6, result_inchunks)
266 expected_in = [(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (6,), (3, 3)]
267 assert result_in == expected_in
268
269
270def test_smooth_chunks_large_dimension():

Callers

nothing calls this directly

Calls 1

_smooth_chunksFunction · 0.90

Tested by

no test coverage detected