MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / tutorial_param

Function tutorial_param

python/tutorial/T05-Param.py:15–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def tutorial_param():
16 pipeline = GPipeline()
17 a, b, e = MyReadParamNode(), MyReadParamNode(), MyReadParamNode()
18 c, d, f = MyWriteParamNode(), MyWriteParamNode(), MyWriteParamNode()
19
20 pipeline.registerGElement(a, set(), "readNodeA")
21 pipeline.registerGElement(b, {a}, "readNodeB")
22 pipeline.registerGElement(c, {a}, "writeNodeC")
23 pipeline.registerGElement(d, {a}, "writeNodeD", 2)
24 pipeline.registerGElement(e, {a}, "readNodeE")
25 pipeline.registerGElement(f, {b, c, d, e}, "writeNodeF")
26
27 pipeline.init()
28
29 for i in range(0, 3):
30 status = pipeline.run()
31 print('---- tutorial_param, loop : {0}, and run status = {1}'.format(i + 1, status.getCode()))
32
33 pipeline.destroy()
34
35
36if __name__ == '__main__':

Callers 1

T05-Param.pyFile · 0.70

Calls 7

initMethod · 0.95
runMethod · 0.95
destroyMethod · 0.95
MyReadParamNodeClass · 0.90
MyWriteParamNodeClass · 0.90
GPipelineClass · 0.85
getCodeMethod · 0.80

Tested by

no test coverage detected