STEP_adaptation_index

biophysics_fitting.ephys.STEP_adaptation_index(t, v, stim_end=2000, thresh=None)

Calculate the adaptation index for a step current stimulus.

Parameters:
t : np.array

Time vector

v : np.array

Voltage vector

stim_end : float

End time of the stimulus.

thresh : float

Voltage threshold for finding APs with find_crossing()

Returns:

Adaptation index.

Return type:

float