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

Class MyTemplateNode

python/tutorial/MyGNode/MyTemplateNode.py:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class MyTemplateNode(GNode):
13 def __init__(self, num: int, score: float):
14 super().__init__() # must call super init function
15 self._num = num
16 self._score = score
17
18 def run(self):
19 print('[{0}] num = [{1}], score = [{2}]'.format(self.getName(), self._num, self._score))
20 return CStatus()

Callers 1

tutorial_templateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected