biophysics_fittingephystrace_check_max_prestim_dendrite_depo

trace_check_max_prestim_dendrite_depo

biophysics_fitting.ephys.trace_check_max_prestim_dendrite_depo(t, vmax, stim_onset, max_prestim_dendrite_depo=None)

Check whether anywhere in the dendritic, there is a spike before stimulus onset

Parameters:
  • t (array) – Time array.

  • vmax (array) – The voltage maximum, taken over all dendrites, at each given timepoint.

  • stim_onset (float) – Time of stimulus onset (ms).

  • max_prestim_dendrite_depo (float) – Maximum dendritic depolarization before stimulus onset (mV). If some dendrite section exceeds this value, it is considered a spike.

Returns:

Whether or not a spike is detected before stimulus onset.

Return type:

bool