MCPcopy
hub / github.com/dask/dask / test_cull

Function test_cull

dask/tests/test_highgraph.py:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def test_cull():
101 a = {"x": 1, "y": (inc, "x")}
102 hg = HighLevelGraph({"a": a}, {"a": set()})
103
104 culled_by_x = hg.cull({"x"})
105 assert dict(culled_by_x) == {"x": 1}
106
107 # parameter is the raw output of __dask_keys__()
108 culled_by_y = hg.cull([[["y"]]])
109 assert dict(culled_by_y) == a
110
111
112def test_cull_layers():

Callers

nothing calls this directly

Calls 3

cullMethod · 0.95
HighLevelGraphClass · 0.90
setClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…