simrunsynaptic_strength_fittingget_tMax_vMax_baseline

get_tMax_vMax_baseline

simrun.synaptic_strength_fitting.get_tMax_vMax_baseline(t_baseline, v_baseline, t, v, tStim=None, tEnd=None)

Calculate the ePSP amplitude.

This method subtracts a voltage trace without any synapse activation from a voltage trace with synapse activation, and then calculates the maximum voltage deflection and the timepoint thereof.

Parameters:
  • t_baseline (np.array) – Timepoints of the baseline voltage trace.

  • v_baseline (np.array) – Voltage trace without synapse activation.

  • t (np.array) – Timepoints of the voltage trace with synapse activation.

  • v (np.array) – Voltage trace with synapse activation.

  • tStim (float) – Timepoint of synapse activation.

  • tEnd (float) – End time of the simulation.

Returns:

Timepoint and amplitude of the maximum voltage deflection.

Return type:

tuple