simrun
❭ synaptic_strength_fitting
❭ run_ex_synapses
run_ex_synapses¶
-
simrun.synaptic_strength_fitting.run_ex_synapses(neuron_param, network_param, celltype, gAMPA=
None
, gNMDA=None
, gGABA=None
, vardt=False
, tStim=None
, tEnd=None
, mode='cells'
)¶ Simulate all EPSPs of a given celltype, one by one.
This function reads the network parameter file, selects one celltype, and activates each synapse of that celltype, as defined by their corresponding .syn file. The simulation is reset after each synapse activation run.
This function is used in the
PSPs
class to simulate each synapse.- Parameters:¶
neuron_param (
NTParameterSet
) – The Cell parameters.network_param (
NTParameterSet
) – The Network parameters.celltype (str) – The celltype to activate the synapse for. Used to fetch the correct network parameters.
gAMPA (float) – The AMPA conductance value. Default:
None
.gNMDA (float) – The NMDA conductance value. Default:
None
.gGABA (float) – The GABA conductance value. Default:
None
.vardt (bool) – Whether to use the variable step size solver. Default:
False
.tStim (float) – The time of the synaptic activation. Default:
None
.tEnd (float) – The end time of the simulation. Default:
None
.mode (str) – Whether to activate each synapse one by one, or each cell one by one. A presynaptic cell may have multiple synaptic connections with the neuron model (i.e. the
Cell
). Options:('cells', 'synapses')
- Returns:¶
A tuple containing the voltage baseline, and voltage traces of all synapses. Format:
(t_baseline, v_baseline, [t_vecs], [v_vecs])
- Return type:¶
tuple
See also
run_ex_synapse()
for the core function to simulate a single synapse.