def tick(self):
        elapsed = time.time() - self.startTime
        p = elapsed-self.animationTime
        if p > 1.0:
            p = 1.0

        newValue = self.startValue + (self.targetValue - self.startValue)*p
        self.obj.setProperty(self.propertyName, newValue)

        if p == 1.0:
            self.timer.callback = None
            return False
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/propertyanimation.py/AnimatePropertyValue.tick/operator `/` -> `-`