Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent 08b6b5d commit 6205758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spikeinterface/preprocessing/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def __init__(self, recording, freq_max=300.0, margin_ms=5.0, dtype=None, **filte
self._kwargs = dict(recording=recording, freq_max=freq_max, margin_ms=margin_ms, dtype=dtype.str)
self._kwargs.update(filter_kwargs)


class NotchFilterRecording(BasePreprocessor):
"""
Parameters
Expand Down Expand Up @@ -358,6 +359,7 @@ def __init__(self, recording, freq=3000, q=30, margin_ms=5.0, dtype=None):
highpass_filter = define_function_from_class(source_class=HighpassFilterRecording, name="highpass_filter")
lowpass_filter = define_function_from_class(source_class=LowpassFilterRecording, name="lowpass_filter")


def causal_filter(
recording,
direction="forward",
Expand Down Expand Up @@ -428,6 +430,7 @@ def causal_filter(
highpass_filter.__doc__ = highpass_filter.__doc__.format(_common_filter_docs)
lowpass_filter.__doc__ = lowpass_filter.__doc__.format(_common_filter_docs)


def fix_dtype(recording, dtype):
if dtype is None:
dtype = recording.get_dtype()
Expand Down

0 comments on commit 6205758

Please sign in to comment.