53 super().
__init__(owner, name, description)
55 self.
in1 = ac.ScalarPushInput(ac.DataType.int32, self,
"in1",
"",
"")
56 self.
in2 = ac.ScalarPushInput(ac.DataType.int32, self,
"in2",
"",
"")
57 self.
in3 = ac.ScalarPushInput(ac.DataType.int32, self,
"in3",
"",
"")
59 self.
letsStart = ac.ScalarOutput(ac.DataType.int32, self,
"letsStart",
"",
"")
61 self.
testError = ac.ScalarOutput(ac.DataType.string, self,
"testError",
"",
"")
67 rag = self.readAnyGroup()
69 dg = ac.DataConsistencyGroup(self.
in1, self.
in2)
75 change = rag.readAny()
76 isValid = dg.update(change)
78 change = rag.readAny()
79 isValid = dg.update(change)
81 change = rag.readAny()
82 isValid = dg.update(change)
85 change = rag.readAny()
86 isValid = dg.update(change)
88 change = rag.readAny()
89 isValid = dg.update(change)
91 change = rag.readAny()
92 isValid = dg.update(change)
97 dgh = ac.DataConsistencyGroup(self.
in1, self.
in2, mode=ac.MatchingMode.historized, histLen=1)
98 change = rag.readAny()
99 isValid = dgh.update(change)
104 except AssertionError
as e:
105 print(
"Exception: " +
"\n".join(traceback.format_exception(e)))
107 self.
testError.setAndWrite(
"\n".join(traceback.format_exception(e)))