()
| 34 | |
| 35 | |
| 36 | def tutorial_function(): |
| 37 | pipeline = GPipeline() |
| 38 | a, b = MyNode1(), MyWriteParamNode() |
| 39 | c_function, d_function = GFunction(), GFunction() |
| 40 | |
| 41 | c_function.setFunction(CFunctionType.RUN, c_function_run) |
| 42 | |
| 43 | d_function.setFunction(CFunctionType.INIT, lambda: d_function_init(d_function)) |
| 44 | d_function.setFunction(CFunctionType.RUN, lambda: d_function_run(d_function, 10)) |
| 45 | |
| 46 | pipeline.registerGElement(a, set(), "nodeA") |
| 47 | pipeline.registerGElement(b, {a}, "nodeB") |
| 48 | pipeline.registerGElement(c_function, {b}, "functionC") |
| 49 | pipeline.registerGElement(d_function, {c_function}, "nodeD") |
| 50 | |
| 51 | pipeline.process() |
| 52 | |
| 53 | |
| 54 | if __name__ == '__main__': |
no test coverage detected