From 2a5c2db780be76b444632050aeb82e76cb4d489d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 20 Jan 2020 00:54:04 +0100 Subject: easing functions --- cli/app/search/live.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/app/search/live.py') diff --git a/cli/app/search/live.py b/cli/app/search/live.py index f3a4ea7..d21a59b 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -118,7 +118,7 @@ class SinParam: self.t = 0 def update(self): - self.orbit_time.assign((np.pi * 2) / self.orbit_speed.value, immediate=True) + self.orbit_time.assign(self.orbit_time.value + (np.pi * 2) / self.orbit_speed.value, immediate=True) self.t += 1 # randomize the orbit when possible - # - check if we've done one full orbital period @@ -196,8 +196,8 @@ class InterpolatorParam: if self.datatype == 'float': value = float(value) self.next_value = value - if not self.smooth or immediate: - self.value = self.next_value + if immediate or not self.smooth: + self.value = value else: self.value = value -- cgit v1.2.3-70-g09d2