def _flipDirection(self): self.__evaluator = oppositeFunction(self.__evaluator) if self.desiredEvaluation is not None: self.desiredEvaluation *= -1