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

Function assert_dask_graph

dask/dataframe/utils.py:590–599  ·  view source on GitHub ↗
(dask, label)

Source from the content-addressed store, hash-verified

588
589
590def 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
602def assert_divisions(ddf, scheduler=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected