neurotools.spikes.waveform module
Routines for signal processing with spike waveforms
- neurotools.spikes.waveform.realign(snip, pad='zeros')[source]
Realign waveforms to peak. This will rotate the signal contained in snip so that its global maximum lies at len(snip)//2.
- Parameters:
snip (1D np.float32) – Array containing a spike waveform
Parameters (Other)
pad (str default 'zero') –
- Padding behavior
”zero”: pad edges with zero
”end”: pad edges with initial/final values
- neurotools.spikes.waveform.is_thin(wf, thr=0.98, time=123)[source]
Determine whether a mean-waveform is a thin spike. Uses amplituce 300 μs post-spike. This procedure was trained on well-isolated cells. See the 20160802_waveform_segmentation notebook for how threshold was derived