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

Function test_stackstac

dask/tests/test_order.py:2597–2692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2595
2596
2597def test_stackstac():
2598 # see https://github.com/dask/dask/issues/11363
2599 # and https://github.com/dask/dask/pull/11367
2600 final_keys = [
2601 ("transpose-9c80c6b26d7ef5cfec7274ee9e6b091e", 0, 0, 0),
2602 ("transpose-9c80c6b26d7ef5cfec7274ee9e6b091e", 0, 1, 0),
2603 ]
2604 dsk = {
2605 ("transpose-9c80c6b26d7ef5cfec7274ee9e6b091e", 0, 0, 0): (
2606 f,
2607 ("vindex-merge", 0, 0, 0),
2608 ),
2609 ("transpose-9c80c6b26d7ef5cfec7274ee9e6b091e", 0, 1, 0): (
2610 f,
2611 ("vindex-merge", 0, 1, 0),
2612 ),
2613 ("vindex-merge", 0, 0, 0): (
2614 f,
2615 ("vindex-slice", 0, 0, 0),
2616 ("vindex-slice", 1, 0, 0),
2617 ("vindex-slice", 2, 0, 0),
2618 ("vindex-slice", 3, 0, 0),
2619 ),
2620 ("vindex-slice", 2, 0, 0): (f, ("getitem-vindex", 2, 0, 0)),
2621 ("vindex-merge", 0, 1, 0): (
2622 f,
2623 ("vindex-slice", 0, 0, 1),
2624 ("vindex-slice", 1, 0, 1),
2625 ("vindex-slice", 2, 0, 1),
2626 ("vindex-slice", 3, 0, 1),
2627 ),
2628 ("vindex-slice", 2, 0, 1): (f, ("getitem-vindex", 2, 0, 1)),
2629 ("vindex-slice", 1, 0, 0): (f, ("getitem-vindex", 1, 0, 0)),
2630 ("getitem-vindex", 2, 0, 1): (
2631 f,
2632 ("shuffle-split", 321),
2633 ("shuffle-split", 322),
2634 ),
2635 ("vindex-slice", 3, 0, 1): (f, ("getitem-vindex", 3, 0, 1)),
2636 ("vindex-slice", 0, 0, 1): (f, ("getitem-vindex", 0, 0, 1)),
2637 ("getitem-vindex", 3, 0, 1): (
2638 f,
2639 ("shuffle-split", 299),
2640 ("shuffle-split", 300),
2641 ),
2642 ("getitem-vindex", 2, 0, 0): (f, ("concatenate", 0, 1, 9, 1)),
2643 ("vindex-slice", 3, 0, 0): (f, ("getitem-vindex", 3, 0, 0)),
2644 ("shuffle-split", 322): (f, ("concatenate", 0, 1, 9, 1)),
2645 ("vindex-slice", 0, 0, 0): (f, ("getitem-vindex", 0, 0, 0)),
2646 ("getitem-vindex", 0, 0, 1): (
2647 f,
2648 ("shuffle-split", 341),
2649 ("shuffle-split", 342),
2650 ),
2651 ("vindex-slice", 1, 0, 1): (f, ("getitem-vindex", 1, 0, 1)),
2652 ("shuffle-split", 321): (f, ("concatenate-getitem", 321)),
2653 ("shuffle-split", 299): (f, ("concatenate-getitem", 299)),
2654 ("getitem-vindex", 3, 0, 0): (f, ("concatenate", 0, 1, 8, 1)),

Callers

nothing calls this directly

Calls 3

orderFunction · 0.90
diagnosticsFunction · 0.90
maxFunction · 0.85

Tested by

no test coverage detected