Skip to content

Commit

Permalink
Typos while copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Sep 15, 2023
1 parent 9ad5f56 commit 9c6e6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/core/node_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def compute(self, traces, start_frame, end_frame, segment_index, max_margin):
# get local peaks
sl = self.segment_slices[segment_index]
peaks_in_segment = self.peaks[sl]
i0, i1 = np.searchsorted(peaks_in_segment["segment_index"], [start_frame, end_frame])
i0, i1 = np.searchsorted(peaks_in_segment["sample_index"], [start_frame, end_frame])
local_peaks = peaks_in_segment[i0:i1]

# make sample index local to traces
Expand Down Expand Up @@ -194,7 +194,7 @@ def compute(self, traces, start_frame, end_frame, segment_index, max_margin):
# get local peaks
sl = self.segment_slices[segment_index]
peaks_in_segment = self.peaks[sl]
i0, i1 = np.searchsorted(peaks_in_segment["segment_index"], [start_frame, end_frame])
i0, i1 = np.searchsorted(peaks_in_segment["sample_index"], [start_frame, end_frame])
local_peaks = peaks_in_segment[i0:i1]

# make sample index local to traces
Expand Down

0 comments on commit 9c6e6c1

Please sign in to comment.