biophysics_fittingephysBAC_ISI_check_2_or_3_APs

BAC_ISI_check_2_or_3_APs

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

Check if there are 2 or 3 action potentials (APs) in a given voltage trace for a BAC stimulus.

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

  • v (array) – Array of voltage values.

  • thresh (float, optional) – Spike threshold. Defaults to None.

Returns:

True if there are 2 or 3 APs, False otherwise.

Return type:

bool