From 3f1024b385490db496a79e66e6f2cb7b8403af37 Mon Sep 17 00:00:00 2001 From: JuanPimiento <148992347+JuanPimientoCaicedo@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:07:56 -0400 Subject: [PATCH] Update src/spikeinterface/preprocessing/filter.py Co-authored-by: Alessio Buccino --- src/spikeinterface/preprocessing/filter.py | 57 ---------------------- 1 file changed, 57 deletions(-) diff --git a/src/spikeinterface/preprocessing/filter.py b/src/spikeinterface/preprocessing/filter.py index db142b7c21..793c8ec7d1 100644 --- a/src/spikeinterface/preprocessing/filter.py +++ b/src/spikeinterface/preprocessing/filter.py @@ -327,63 +327,6 @@ def __init__(self, recording, freq=3000, q=30, margin_ms=5.0, dtype=None): self._kwargs = dict(recording=recording, freq=freq, q=q, margin_ms=margin_ms, dtype=dtype.str) -class CausalFilter(FilterRecording): - """ - Performs causal filtering using: - * scipy.signal.lfilt or scipy.signal.sosfilt - - Parameters - ---------- - recording : Recording - The recording extractor to be re-referenced - band : float or list, default: [300.0, 6000.0] - If float, cutoff frequency in Hz for "highpass" filter type - If list. band (low, high) in Hz for "bandpass" filter type - margin_ms : float - 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 - direction : "forward" | "backward", default: "forward" - when causal_mode = True, defines the direction of the filtering - - Returns - ------- - filter_recording : CausalFilterRecording - The causal-filtered recording extractor object - - {} - - """ - - name = "causal_filter" - - def __init__( - self, - recording, - band=[300.0, 6000.0], - margin_ms=5.0, - dtype=None, - direction="forward", - **filter_kwargs, - ): - FilterRecording.__init__( - self, - recording, - band=band, - margin_ms=margin_ms, - dtype=dtype, - direction=direction, - **filter_kwargs, - ) - dtype = fix_dtype(recording, dtype) - self._kwargs = dict( - recording=recording, - band=band, - margin_ms=margin_ms, - dtype=dtype.str, - direction=direction, - ) - self._kwargs.update(filter_kwargs) # functions for API