Skip to content
Snippets Groups Projects
Commit c8aa6152 authored by Cribellier, Antoine's avatar Cribellier, Antoine
Browse files

Updated params of butterworth filter

parent ddef281a
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ def filter_interp(y: List[float], frame_rate: int, cutoff_frequency: int) -> Lis
y_filtered[is_nan] = np.interp(x(is_nan), x(~is_nan), y_filtered[~is_nan])
w = cutoff_frequency / (frame_rate / 2) # Normalize the frequency
b, a = signal.butter(2, w, 'low')
b, a = signal.butter(2, w, 'low', output='sos')
y_filtered = signal.filtfilt(b, a, y_filtered)
y_filtered[is_nan] = np.nan
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment