Skip to content

Commit 03c818c

Browse files
authored
Merge pull request #3925 from pas-calc/patch-1
spike_amplitudes description
2 parents 647d811 + 4dd0225 commit 03c818c

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

src/spikeinterface/postprocessing/spike_amplitudes.py

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,19 @@ class ComputeSpikeAmplitudes(AnalyzerExtension):
1717
Computes the spike amplitudes.
1818
1919
Needs "templates" to be computed first.
20-
Localize spikes in 2D or 3D with several methods given the template.
20+
Computes spike amplitudes from the template's peak channel for every spike.
2121
2222
Parameters
2323
----------
2424
sorting_analyzer : SortingAnalyzer
2525
A SortingAnalyzer object
26-
ms_before : float, default: 0.5
27-
The left window, before a peak, in milliseconds
28-
ms_after : float, default: 0.5
29-
The right window, after a peak, in milliseconds
30-
spike_retriver_kwargs : dict
31-
A dictionary to control the behavior for getting the maximum channel for each spike
32-
This dictionary contains:
33-
* channel_from_template: bool, default: True
34-
For each spike is the maximum channel computed from template or re estimated at every spikes
35-
channel_from_template = True is old behavior but less acurate
36-
channel_from_template = False is slower but more accurate
37-
* radius_um: float, default: 50
38-
In case channel_from_template=False, this is the radius to get the true peak
39-
* peak_sign, default: "neg"
40-
In case channel_from_template=False, this is the peak sign.
41-
method : "center_of_mass" | "monopolar_triangulation" | "grid_convolution", default: "center_of_mass"
42-
The localization method to use
43-
**method_kwargs : dict, default: {}
44-
Kwargs which are passed to the method function. These can be found in the docstrings of `compute_center_of_mass`, `compute_grid_convolution` and `compute_monopolar_triangulation`.
45-
outputs : "numpy" | "by_unit", default: "numpy"
46-
The output format, either concatenated as numpy array or separated on a per unit basis
26+
peak_sign : "neg" | "pos" | "both", default: "neg"
27+
Sign of the template to compute extremum channel used to retrieve spike amplitudes.
4728
4829
Returns
4930
-------
50-
spike_locations: np.array
51-
All locations for all spikes and all units are concatenated
31+
spike_amplitudes: np.array
32+
All amplitudes for all spikes and all units are concatenated (along time, like in spike vector)
5233
5334
"""
5435

0 commit comments

Comments
 (0)