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

Function assert_max_deps

dask/array/tests/test_reductions.py:568–573  ·  view source on GitHub ↗
(x, n, eq=True)

Source from the content-addressed store, hash-verified

566
567
568def assert_max_deps(x, n, eq=True):
569 dependencies, dependents = get_deps(x.dask)
570 if eq:
571 assert max(map(len, dependencies.values())) == n
572 else:
573 assert max(map(len, dependencies.values())) <= n
574
575
576def test_tree_reduce_depth():

Callers 2

test_tree_reduce_depthFunction · 0.70

Calls 3

get_depsFunction · 0.90
maxFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected