Skip to content

Commit

Permalink
Add precision on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yudgugger committed Mar 11, 2024
1 parent 48b54fe commit 2a3176f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/core/test_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def test_ex_butter_filter_bandpass():

y_filt_bandpass = ex_butter_filter(filter_type='bandpass')

assert np.sum(y_filt_bandpass) == approx(-24.70597466183571)
assert np.sum(y_filt_bandpass) == approx(-24.70597466183571, abs=1e-5)


def test_ex_butter_filter_bandstop():
""" Test ex_butter_filter band stop """

y_filt_bandstop = ex_butter_filter(filter_type='bandstop')

assert np.sum(y_filt_bandstop) == approx(33.83620308961862)
assert np.sum(y_filt_bandstop) == approx(33.83620308961862, abs=1e-5)

0 comments on commit 2a3176f

Please sign in to comment.