diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-20 00:54:04 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-20 00:54:04 +0100 |
| commit | 2a5c2db780be76b444632050aeb82e76cb4d489d (patch) | |
| tree | 9a8f05e3a2dcec2e2dab13b4ce6ca59ba57f2b17 /cli | |
| parent | ec097d294daae2fea7f9cb83aee8a00885f38426 (diff) | |
easing functions
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/app/search/live.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
