biophysics_fittingephysAP_width

AP_width

biophysics_fitting.ephys.AP_width(t, v, thresh)

Calculates the action potential (AP) width given the time and voltage arrays and a threshold value.

Parameters:
  • t (numpy.ndarray) – Array of time values.

  • v (numpy.ndarray) – Array of voltage values.

  • thresh (float) – Threshold value for detecting AP.

Returns:

Array of AP widths.

Return type:

numpy.ndarray