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 Oct 4, 2023
1 parent e97005a commit 2a5e37c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spikeinterface/preprocessing/remove_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ def __init__(
time_pad,
sparsity,
):

BasePreprocessorSegment.__init__(self, parent_recording_segment)

self.triggers = np.asarray(triggers, dtype="int64")
Expand All @@ -251,8 +250,6 @@ def __init__(
self.sparsity = sparsity

def get_traces(self, start_frame, end_frame, channel_indices):


if self.mode in ["average", "median"]:
traces = self.parent_recording_segment.get_traces(start_frame, end_frame, slice(None))
else:
Expand Down Expand Up @@ -285,6 +282,7 @@ def get_traces(self, start_frame, end_frame, channel_indices):
traces[trig - pad[0] :, :] = 0
elif self.mode in ["linear", "cubic"]:
import scipy.interpolate

for trig in triggers:
if pad is None:
pre_data_end_idx = trig - 1
Expand Down

0 comments on commit 2a5e37c

Please sign in to comment.