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

Function format_plan

dask/array/rechunk.py:818–823  ·  view source on GitHub ↗

>>> format_plan([((10, 10, 10), (15, 15)), ((30,), (10, 10, 10))]) [(3*[10], 2*[15]), ([30], 3*[10])]

(plan)

Source from the content-addressed store, hash-verified

816
817
818def format_plan(plan):
819 """
820 >>> format_plan([((10, 10, 10), (15, 15)), ((30,), (10, 10, 10))])
821 [(3*[10], 2*[15]), ([30], 3*[10])]
822 """
823 return [format_chunks(c) for c in plan]
824
825
826def _get_chunks(n, chunksize):

Callers

nothing calls this directly

Calls 1

format_chunksFunction · 0.85

Tested by

no test coverage detected