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

Function _convert_int_chunk_to_tuple

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

Source from the content-addressed store, hash-verified

3223
3224
3225def _convert_int_chunk_to_tuple(shape, chunks):
3226 return sum(
3227 (
3228 (
3229 blockdims_from_blockshape((s,), (c,))
3230 if not isinstance(c, (tuple, list))
3231 else (c,)
3232 )
3233 for s, c in zip(shape, chunks)
3234 ),
3235 (),
3236 )
3237
3238
3239def _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