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

Class MyParamCondition

python/tutorial/MyGCondition/MyParamCondition.py:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12from MyParams.MyParam import MyParam
13
14class MyParamCondition(GCondition):
15 def choose(self):
16 param: MyParam = self.getGParamWithNoEmpty("param1")
17 param.lock()
18 cnt = param.count
19 param.unlock()
20
21 relation: GElementRelation = self.getRelation()
22 return cnt % len(relation.children)

Callers 1

tutorial_conditionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected