(dask, label)
| 588 | |
| 589 | |
| 590 | def assert_dask_graph(dask, label): |
| 591 | if hasattr(dask, "dask"): |
| 592 | dask = dask.dask |
| 593 | assert isinstance(dask, Mapping) |
| 594 | for k in dask: |
| 595 | if isinstance(k, tuple): |
| 596 | k = k[0] |
| 597 | if k.startswith(label): |
| 598 | return True |
| 599 | raise AssertionError(f"given dask graph doesn't contain label: {label}") |
| 600 | |
| 601 | |
| 602 | def assert_divisions(ddf, scheduler=None): |
nothing calls this directly
no outgoing calls
no test coverage detected