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

Function _make_dims

dask/blockwise.py:1504–1511  ·  view source on GitHub ↗

Returns a dictionary mapping between each index specified in `indices` and the number of output blocks for that indice.

(indices, numblocks, new_axes)

Source from the content-addressed store, hash-verified

1502
1503
1504def _make_dims(indices, numblocks, new_axes):
1505 """Returns a dictionary mapping between each index specified in
1506 `indices` and the number of output blocks for that indice.
1507 """
1508 dims = broadcast_dimensions(indices, numblocks)
1509 for k, v in new_axes.items():
1510 dims[k] = len(v) if isinstance(v, tuple) else 1
1511 return dims
1512
1513
1514def fuse_roots(graph: HighLevelGraph, keys: list):

Callers 2

dimsMethod · 0.85
_make_blockwise_graphFunction · 0.85

Calls 2

broadcast_dimensionsFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected