single_cell_parseranalyzesynanalysissynapse_activation_times

synapse_activation_times

single_cell_parser.analyze.synanalysis.synapse_activation_times(tVec, cntVec)

Parse the spike times from a list of spike counts and corresponding time points.

Parameters:
  • tVec (neuron.h.Vector | array) – list of time points

  • cntVec (neuron.h.Vector | array) – list of cummulative spike counts

Returns:

list of spike times

Return type:

list

Example

>>> tVec = [0, 1, 2, 3, 4, 5]
>>> cntVec = [0, 0, 0, 1, 1, 2]
>>> synapse\_activation\_times(tVec, cntVec)
[3, 5]