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

Function key

dask/array/rechunk.py:533–538  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

531 # multiplicative values and weights. Just use a greedy algorithm
532 # by trying dimensions in decreasing value / weight order.
533 def key(k):
534 gse = graph_size_effect[k]
535 bse = block_size_effect[k]
536 if bse == 1:
537 bse = 1 + 1e-9
538 return (np.log(gse) / np.log(bse)) if bse > 0 else 0
539
540 sorted_candidates = sorted(merge_candidates, key=key)
541

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected