simrun
❭ synaptic_strength_fitting
❭ run_ex_synapse
run_ex_synapse¶
-
simrun.synaptic_strength_fitting.run_ex_synapse(cell_nw_generator, neuron_param, network_param, celltype, preSynCellID, gAMPA=
None
, gNMDA=None
, gGABA=None
, vardt=False
, return_cell=False
, synapseID=None
, tEnd=None
, tStim=None
)¶ Simulate a single excitatory or inhibitory synapse
This is the core function to activate a single synapse and run the simulation. Used in the
PSPs
class to simulate each synapse.For excitatory synapses,
gAMPA
andgNMDA
must be specified, and notgGABA
. For inhibitory synapses, onlygGABA
may be specified.- Parameters:¶
cell_nw_generator (callable) – A callable that returns a
Cell
andNetworkMapper
when called.neuron_param (
ParameterSet
) – The Cell parameters.network_param (
ParameterSet
) – The Network parameters.celltype (str) – The celltype to activate the synapse for. Used to fetch the correct network parameters.
preSynCellID (int) – The presynaptic cell ID to activate the synapse for. Default:
None
.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
.return_cell (bool) – Whether to return the
Cell
object. Default:False
.synapseID (int) – The synapse ID to activate. If
None
, all synapses assigned to the presynaptic cell get activated synchronously during the simulation. Default:None
.tEnd (float) – The end time of the simulation. Default:
None
.tStim (float) – The time of the synaptic activation. Default:
None
.
- Returns:¶
A tuple of the time vector and the voltage trace at the soma.
- Return type:¶
tuple