Skip to content

Commit

Permalink
Hard code causal mode in CausalFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanPimientoCaicedo authored Jul 4, 2024
1 parent 377808a commit ef402be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/spikeinterface/preprocessing/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -371,7 +369,6 @@ def __init__(
band=[300.0, 6000.0],
margin_ms=5.0,
dtype=None,
causal_mode=True,
direction="forward",
**filter_kwargs,
):
Expand All @@ -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,
)
Expand Down

0 comments on commit ef402be

Please sign in to comment.