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

Function test_divide_to_width

dask/array/tests/test_rechunk.py:361–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359
360
361def test_divide_to_width():
362 chunks = divide_to_width((8, 9, 10), 10)
363 assert chunks == (8, 9, 10)
364 chunks = divide_to_width((8, 2, 9, 10, 11, 12), 4)
365 # Note how 9 gives (3, 3, 3), not (4, 4, 1) or whatever
366 assert chunks == (4, 4, 2, 3, 3, 3, 3, 3, 4, 3, 4, 4, 4, 4, 4)
367
368
369def test_merge_to_number():

Callers

nothing calls this directly

Calls 1

divide_to_widthFunction · 0.90

Tested by

no test coverage detected