spike_analysiscoreget_upcross

get_upcross

spike_analysis.core.get_upcross(t, v, lim)

Finds the times and corresponding voltages of upcrossings of a given threshold.

Parameters:
  • t (numpy.ndarray) – Array of time values.

  • v (numpy.ndarray) – Array of voltage values.

  • lim (float) – Threshold value.

Returns:

Tuple containing arrays of time and voltage values at upcrossings.

Return type:

Tuple[numpy.ndarray, numpy.ndarray]