()
| 13 | |
| 14 | |
| 15 | def 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 | |
| 36 | if __name__ == '__main__': |
no test coverage detected