fix blob fallback breaking stuff

This commit is contained in:
Prohurtz 2023-03-05 14:58:28 -08:00 committed by GitHub
parent b97cc8a352
commit d9ca447ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.