Skip to content

Commit

Permalink
Merge branch 'main' into matching_circus
Browse files Browse the repository at this point in the history
  • Loading branch information
yger authored Mar 18, 2024
2 parents 79c9f31 + 80051da commit 1f65dac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/core/numpyextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ def from_peaks(peaks, sampling_frequency, unit_ids) -> "NumpySorting":
spikes["sample_index"] = peaks["sample_index"]
spikes["unit_index"] = peaks["channel_index"]
spikes["segment_index"] = peaks["segment_index"]

order = np.argsort(spikes["sample_index"])
spikes = spikes[order]
sorting = NumpySorting(spikes, sampling_frequency, unit_ids)

return sorting
Expand Down

0 comments on commit 1f65dac

Please sign in to comment.