biophysics_fitting
❭ ephys
❭ BAC_caSpike_height_check_Ca_spikes_after_Na_spike
BAC_caSpike_height_check_Ca_spikes_after_Na_spike¶
-
biophysics_fitting.ephys.BAC_caSpike_height_check_Ca_spikes_after_Na_spike(t, v, v_dend, n=
2
, thresh=None
)¶ Checks if a calcium spike occurs after the nth sodium spike.
- Parameters:¶
t (numpy.ndarray) – Array of time values.
v (numpy.ndarray) – Array of voltage values.
v_dend (numpy.ndarray) – Array of dendritic voltage values.
n (int, optional) – The number of the sodium spike to check for. Defaults to 2.
thresh (float, optional) – The voltage threshold for detecting spikes. If None, defaults to the maximum value of v divided by 10. Defaults to None.
- Returns:¶
- True if a calcium spike occurs after the nth sodium spike,
False otherwise.
- Return type:¶
bool