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

Function test_run_smaller_sections

dask/tests/test_order.py:538–566  ·  view source on GitHub ↗

r""" aa / | b d bb dd / \ /| | / a c e cc

(abcde)

Source from the content-addressed store, hash-verified

536
537
538def test_run_smaller_sections(abcde):
539 r"""
540 aa
541 / |
542 b d bb dd
543 / \ /| | /
544 a c e cc
545
546 """
547 a, b, c, d, e = abcde
548 aa, bb, cc, dd = (x * 2 for x in [a, b, c, d])
549
550 dsk = {
551 a: (f,),
552 c: (f,),
553 e: (f,),
554 cc: (f,),
555 b: (f, a, c),
556 d: (f, c, e),
557 bb: (f, cc),
558 aa: (f, d, bb),
559 dd: (f, cc),
560 }
561 o = order(dsk)
562 assert_topological_sort(dsk, o)
563 # The actual order is a bit ambiguous but the optimal pressure is well
564 # defined, see also
565 # https://github.com/dask/dask/pull/10535/files#r1337528255
566 assert max(diagnostics(dsk)[1]) == 3
567
568
569def test_local_parents_of_reduction(abcde):

Callers

nothing calls this directly

Calls 4

orderFunction · 0.90
diagnosticsFunction · 0.90
assert_topological_sortFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected