single_cell_parseranalyzemembrane_potential_analysisSpikeInitanalyze_single_spike

SpikeInit.analyze_single_spike

static single_cell_parser.analyze.membrane_potential_analysis.SpikeInit.analyze_single_spike(cell, tVec, thresh)

Calculate spike height, width (FWHM) and after hyperpolarization depth (AHP).

Only does this for a single spike in the voltage trace: the one with the maximum deflection from the threshold.

Parameters:
  • cell (Cell) – Cell object.

  • tVec (list) – Time vector.

  • thresh (float) – Spike threshold.

Returns:

Tuple containing the spike height, full width half max (FWHM), and after hyperpolarization (AHP).

Return type:

tuple