From ef402bec9d9697dd077905e65314b2b494bb3de4 Mon Sep 17 00:00:00 2001 From: JuanPimiento <148992347+JuanPimientoCaicedo@users.noreply.github.com> Date: Thu, 4 Jul 2024 09:52:53 -0400 Subject: [PATCH] Hard code causal mode in CausalFilter --- src/spikeinterface/preprocessing/filter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/spikeinterface/preprocessing/filter.py b/src/spikeinterface/preprocessing/filter.py index ee1e5edbf4..092860e17d 100644 --- a/src/spikeinterface/preprocessing/filter.py +++ b/src/spikeinterface/preprocessing/filter.py @@ -349,8 +349,6 @@ class CausalFilter(FilterRecording): Margin in ms on border to avoid border effect dtype : dtype or None The dtype of the returned traces. If None, the dtype of the parent recording is used - causal_mode : Bool, default: True - If true, filtering is applied in just one direction. direction : "forward" | "backward", default: "forward" when causal_mode = True, defines the direction of the filtering @@ -371,7 +369,6 @@ def __init__( band=[300.0, 6000.0], margin_ms=5.0, dtype=None, - causal_mode=True, direction="forward", **filter_kwargs, ): @@ -381,7 +378,7 @@ def __init__( band=band, margin_ms=margin_ms, dtype=dtype, - causal_mode=causal_mode, + causal_mode=True, direction=direction, **filter_kwargs, )