biophysics_fitting
❭ ephys
❭ AHP_depth_abs_check_2AP
AHP_depth_abs_check_2AP¶
-
biophysics_fitting.ephys.AHP_depth_abs_check_2AP(t, v, thresh=
None
)¶ Determines whether there are at least two action potentials (APs) in the voltage trace v within the time range t that cross the threshold thresh.
- Parameters:¶
t (numpy.ndarray) – The time range of the voltage trace.
v (numpy.ndarray) – The voltage trace.
thresh (float, optional) – The threshold voltage for detecting APs. Defaults to None.
- Returns:¶
True if there are at least two APs in the voltage trace v within the time range t that cross the threshold thresh, False otherwise.
- Return type:¶
bool