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

Method test_with_HighLevelGraph

dask/utils_test.py:139–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 assert self.get(d, "x10000") == 10000
138
139 def test_with_HighLevelGraph(self):
140 from dask.highlevelgraph import HighLevelGraph
141
142 layers = {"a": {"x": 1, "y": (inc, "x")}, "b": {"z": (add, (inc, "x"), "y")}}
143 dependencies = {"a": (), "b": {"a"}}
144 graph = HighLevelGraph(layers, dependencies)
145 assert self.get(graph, "z") == 4
146
147
148def import_or_none(name):

Callers

nothing calls this directly

Calls 2

HighLevelGraphClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected