find_crossing

biophysics_fitting.ephys.find_crossing(v, thresh)

Original NEURON doc: Function that giving a threshold returns a list of two vectors The first is the crossing up of that threshold The second is the crossing down of that threshold

Parameters:
v : array

Voltage array.

thresh : float

Threshold voltage (mV).

Returns:

List of index vectors. One for upcrossing, one for downcrossing.

Return type:

list