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

Function _convert_int_chunk_to_tuple

dask/array/core.py:3230–3241  ·  view source on GitHub ↗
(shape, chunks)

Source from the content-addressed store, hash-verified

3228
3229
3230def _convert_int_chunk_to_tuple(shape, chunks):
3231 return sum(
3232 (
3233 (
3234 blockdims_from_blockshape((s,), (c,))
3235 if not isinstance(c, (tuple, list))
3236 else (c,)
3237 )
3238 for s, c in zip(shape, chunks)
3239 ),
3240 (),
3241 )
3242
3243
3244def _compute_multiplier(limit: int, dtype, largest_block: int, result):

Callers 2

normalize_chunksFunction · 0.85
auto_chunksFunction · 0.85

Calls 2

sumFunction · 0.90

Tested by

no test coverage detected