diff --git a/src/spikeinterface/preprocessing/tests/test_filter.py b/src/spikeinterface/preprocessing/tests/test_filter.py index 56e238fc54..bf723c84b9 100644 --- a/src/spikeinterface/preprocessing/tests/test_filter.py +++ b/src/spikeinterface/preprocessing/tests/test_filter.py @@ -46,7 +46,7 @@ def test_causal_filter_main_kwargs(self, recording_and_data): filt_data = causal_filter(recording, direction="forward", **options, margin_ms=0).get_traces() - assert np.allclose(test_data, filt_data, rtol=0, atol=1e-4) + assert np.allclose(test_data, filt_data, rtol=0, atol=1e-2) # Then, change all kwargs to ensure they are propagated # and check the backwards version. @@ -66,7 +66,7 @@ def test_causal_filter_main_kwargs(self, recording_and_data): filt_data = causal_filter(recording, direction="backward", **options, margin_ms=0).get_traces() - assert np.allclose(test_data, filt_data, rtol=0, atol=1e-4) + assert np.allclose(test_data, filt_data, rtol=0, atol=1e-2) def test_causal_filter_custom_coeff(self, recording_and_data): """ @@ -89,7 +89,7 @@ def test_causal_filter_custom_coeff(self, recording_and_data): filt_data = causal_filter(recording, direction="forward", **options, margin_ms=0).get_traces() - assert np.allclose(test_data, filt_data, rtol=0, atol=1e-4, equal_nan=True) + assert np.allclose(test_data, filt_data, rtol=0, atol=1e-2, equal_nan=True) # Next, in "sos" mode options["filter_mode"] = "sos" @@ -100,7 +100,7 @@ def test_causal_filter_custom_coeff(self, recording_and_data): filt_data = causal_filter(recording, direction="forward", **options, margin_ms=0).get_traces() - assert np.allclose(test_data, filt_data, rtol=0, atol=1e-3, equal_nan=True) + assert np.allclose(test_data, filt_data, rtol=0, atol=1e-2, equal_nan=True) def test_causal_kwarg_error_raised(self, recording_and_data): """