diff --git a/src/spikeinterface/sortingcomponents/peak_detection.py b/src/spikeinterface/sortingcomponents/peak_detection.py index d2d1afaafb..134481289e 100644 --- a/src/spikeinterface/sortingcomponents/peak_detection.py +++ b/src/spikeinterface/sortingcomponents/peak_detection.py @@ -736,6 +736,7 @@ def compute(self, traces, start_frame, end_frame, segment_index, max_margin): def get_convolved_traces(self, traces): from scipy.signal import oaconvolve + tmp = oaconvolve(self.prototype[None, :], traces.T, axes=1, mode="valid") scalar_products = self.weights.dot(tmp) return scalar_products