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

Class MyReadParamNode

python/tutorial/MyGNode/MyReadParamNode.py:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class MyReadParamNode(GNode):
15 def run(self):
16 param: MyParam = self.getGParamWithNoEmpty("param1")
17
18 # use `with param:` as same as:
19 # param.lock()
20 # print('[{0}] value is {1}, count is {2}'.format(self.getName(), param.value, param.count))
21 # param.unlock()
22 with param:
23 print('[{0}] value is {1}, count is {2}'.format(self.getName(), param.value, param.count))
24 return CStatus()

Callers 2

tutorial_paramFunction · 0.90
tutorial_conditionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected