mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix blob fallback breaking stuff
This commit is contained in:
parent
b97cc8a352
commit
d9ca447ab6
@ -30,6 +30,7 @@ class OneEuroFilter:
|
||||
|
||||
t = time()
|
||||
t_e = t - self.t_prev
|
||||
if t_e != 0.0: #occasionally when switching to algos this becomes zero causing divide by zero errors crashing the filter.
|
||||
t_e = np.full(x.shape, t_e)
|
||||
|
||||
# The filtered derivative of the signal.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user