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

Method run

python/tutorial/MyGNode/MyReadParamNode.py:15–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected