Skip to content

Commit

Permalink
Update src/spikeinterface/sortingcomponents/tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 authored Oct 26, 2023
1 parent 8a987b8 commit 4e843cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/spikeinterface/sortingcomponents/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def make_multi_method_doc(methods, ident=" "):


def get_prototype_spike(recording, peaks, job_kwargs, nb_peaks=1000, ms_before=0.5, ms_after=0.5):
# TODO for Pierre: this function is really unefficient because it runa full pipeline only for a few
# spikes, which leans that traces are entirally computed!!!!!
# Please find a better way
# TODO for Pierre: this function is really inefficient because it runs a full pipeline only for a few
# spikes, which means that all traces need to be accesses! Please find a better way
nb_peaks = min(len(peaks), nb_peaks)
idx = np.sort(np.random.choice(len(peaks), nb_peaks, replace=False))
peak_retriever = PeakRetriever(recording, peaks[idx])
Expand Down

0 comments on commit 4e843cb

Please sign in to comment.