neuroarch.na.NeuroArch.add_SynapseModel
- NeuroArch.add_SynapseModel(synapse, model_cls, pre_neuron, post_neuron, lpu, **params)[source]
Create a NeuronModel node.
- Parameters:
synapse (models.Synapse or str) – A Synapse object or its rid (str) that the SynapseModel models.
model_cls (str) – The subclass of the model
pre_neuron (models.Neuron or str) – The Neuron object or its rid (str) that is presynaptic to the synapse.
post_neuron (models.Neuron or str) – The Neuron object or its rid (str) that is postsynaptic to the synapse.
lpu (neuronarch.models.LPU) – The LPU that owns the synapse model.
params (dict) – parameters of the neuron model.
- Returns:
The created SynapseModel object.
- Return type: