biophysics_fittingephysSTEP_check_2_ISIs

STEP_check_2_ISIs

biophysics_fitting.ephys.STEP_check_2_ISIs(t, v, thresh=None)

Check if there are more than 2 ISIs in the trace.

calculating the adaptation index, or coefficient of variation requires at least 5 spikes (i.e. 2 ISIs) in the trace.

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

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

  • thresh (float, optional) – Voltage threshold for spike detection. Defaults to None.

Returns:

True if there are more than 2 ISIs in the trace, False otherwise.

Return type:

bool