print("===> Beginning of evaluation, without activating debug\n")
#
# ----------
+ HO["Direct"].disableAvoidingRedundancy()
+ # ----------
Ys = []
for i in range(self._parameters["NumberOfRepetition"]):
print(" %s\n"%("-"*75,))
Yn
) ) )
# ----------
+ HO["Direct"].enableAvoidingRedundancy()
+ # ----------
#
print(" %s\n"%("-"*75,))
if self._parameters["SetDebug"]:
"""
self.__tolerBP = float(toleranceInRedundancy)
self.__lenghtOR = int(lenghtOfRedundancy)
+ self.__initlnOR = self.__lenghtOR
self.clearCache()
def clearCache(self):
return __alc, __HxV
def storeValueInX(self, xValue, HxValue ):
- if self.__lenghtOR < 0: self.__lenghtOR = 2 * xValue.size + 2
+ if self.__lenghtOR < 0:
+ self.__lenghtOR = 2 * xValue.size + 2
+ self.__initlnOR = self.__lenghtOR
while len(self.__listOPCV) > self.__lenghtOR:
# logging.debug("CM Réduction de la liste des cas à %i éléments par suppression du premier"%self.__lenghtOR)
self.__listOPCV.pop(0)
numpy.linalg.norm(xValue),
) )
+ def disable(self):
+ self.__initlnOR = self.__lenghtOR
+ self.__lenghtOR = 0
+
+ def enable(self):
+ self.__lenghtOR = self.__initlnOR
+
# ==============================================================================
class Operator:
"""
self.__Matrix = None
self.__Type = None
+ def disableAvoidingRedundancy(self):
+ Operator.CM.disable()
+
+ def enableAvoidingRedundancy(self):
+ if self.__AvoidRC:
+ Operator.CM.enable()
+ else:
+ Operator.CM.disable()
+
def isType(self):
return self.__Type