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

Function d_function_run

python/tutorial/T12-Function.py:27–33  ·  view source on GitHub ↗
(d: GFunction, num: int)

Source from the content-addressed store, hash-verified

25 return CStatus()
26
27def d_function_run(d: GFunction, num: int):
28 # get GParam info in GFunction
29 param: MyParam = d.getGParamWithNoEmpty('param1')
30 param.count += num
31 print('[{0}] do run function, count is {1}, value is {2}'.format(
32 d.getName(), param.count, param.value))
33 return CStatus()
34
35
36def tutorial_function():

Callers 1

tutorial_functionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected