Skip to content

Commit

Permalink
[python] Fix integration filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 1, 2024
1 parent 06389f1 commit a6199c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pffdtd/common/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def apply_lowcut(y, fs, fcut, order, apply_int):
if apply_int:
# shouldn't really use this without lowcut, but here in case
b = dt/2*np.array([1, 1])
a = np.array([1, 1])
a = np.array([1, -1])
return lfilter(b, a, y)

return np.copy(y)
Expand Down

0 comments on commit a6199c6

Please sign in to comment.