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

Function _calc_lower_dimension_chunks

dask/array/reshape.py:129–137  ·  view source on GitHub ↗
(chunks, start, stop)

Source from the content-addressed store, hash-verified

127
128
129def _calc_lower_dimension_chunks(chunks, start, stop):
130 # We need the lower dimension chunks to match what the higher dimension chunks
131 # can be combined to, i.e. multiply the different dimensions
132 return tuple(
133 map(
134 lambda x: reduce(mul, x),
135 product(*chunks[start : stop + 1]),
136 )
137 )
138
139
140def _smooth_chunks(ileft, ii, max_in_chunk, result_inchunks):

Callers 1

reshape_rechunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected