neuroarch.na.NeuroArch.add_NeuronModel
- NeuroArch.add_NeuronModel(neuron, model_cls, lpu, **params)[source]
Create a NeuronModel node.
- Parameters:
neuron (models.Neuron or str) – An Neuron object or its rid (str) that the NeuronModel models.
model_cls (str) – The subclass of the model
lpu (neuronarch.models.LPU) – The LPU that owns the neuron model.
params (dict) – parameters of the neuron model.
- Returns:
The created NeuronModel object.
- Return type: