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

Function format_chunks

dask/array/rechunk.py:809–815  ·  view source on GitHub ↗

>>> format_chunks((10 * (3,), 3 * (10,))) (10*[3], 3*[10])

(chunks)

Source from the content-addressed store, hash-verified

807
808
809def format_chunks(chunks):
810 """
811 >>> format_chunks((10 * (3,), 3 * (10,)))
812 (10*[3], 3*[10])
813 """
814 assert isinstance(chunks, tuple)
815 return tuple(format_blocks(c) for c in chunks)
816
817
818def format_plan(plan):

Callers 1

format_planFunction · 0.85

Calls 1

format_blocksFunction · 0.85

Tested by

no test coverage detected