dask 2021.10.0

Parameters
_get_coord_mapping(dims, output, out_indices, numblocks, argpairs, concatenate)

This function handles the high-level logic behind Blockwise graph construction. The output is a tuple containing: The mapping between input and output block coordinates (:None:None:`coord_maps`), the axes along which to concatenate for each input (:None:None:`concat_axes`), and the dummy indices needed for broadcasting (:None:None:`dummies`).

Used by make_blockwise_graph and Blockwise._cull_dependencies .

Parameters

dims : dict

Mapping between each index specified in :None:None:`argpairs` and the number of output blocks for that index. Corresponds to the Blockwise :None:None:`dims` attribute.

output : str

Corresponds to the Blockwise :None:None:`output` attribute.

out_indices : tuple

Corresponds to the Blockwise :None:None:`output_indices` attribute.

numblocks : dict

Corresponds to the Blockwise :None:None:`numblocks` attribute.

argpairs : tuple

Corresponds to the Blockwise indices attribute.

concatenate : bool

Corresponds to the Blockwise :None:None:`concatenate` attribute.

Calculate coordinate mapping for graph construction.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/blockwise.py#784
type: <class 'function'>
Commit: