Skip to content

Commit

Permalink
oups
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgarcia committed Oct 25, 2023
1 parent 0c790f4 commit 6887c97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/node_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def compute(self, traces, start_frame, end_frame, segment_index, max_margin):

# handle amplitude
for i, peak in enumerate(local_peaks):
local_peaks["amplitude"][i] = traces[local_peaks["sample_index"], local_peaks[i]["channel_index"]]
local_peaks["amplitude"][i] = traces[peak["sample_index"], peak["channel_index"]]

return (local_peaks,)

Expand Down
4 changes: 2 additions & 2 deletions src/spikeinterface/postprocessing/spike_locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _set_params(
ms_before=0.5,
ms_after=0.5,
spike_retriver_kwargs=dict(
channel_from_template=False,
channel_from_template=True,
radius_um=50,
peaks_sign="neg",
),
Expand Down Expand Up @@ -125,7 +125,7 @@ def compute_spike_locations(
ms_before=0.5,
ms_after=0.5,
spike_retriver_kwargs=dict(
channel_from_template=False,
channel_from_template=True,
radius_um=50,
peaks_sign="neg",
),
Expand Down

0 comments on commit 6887c97

Please sign in to comment.