You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make nestml_synapse_type() return a class, consistent with nestml_cell_type()
Previously the co-generation path returned a (synapse_class, neuron_class) tuple,
while the non-co-generation path returned a single class. Now both paths return a
single class; the co-generated neuron class is accessible via the synapse class's
postsynaptic_cell_type attribute. Also fixes delay_variable/weight_variable being
set only in the co-generation path. Updates the stdp.py example accordingly.
Return a new NESTMLCellType subclass from a NESTML description.
81
+
Return a new NativeSynapseType subclass from a NESTML description.
74
82
75
-
For plastic synapses, the synapse code needs to be generated in close combination with the postsynaptic neuron code. For this reason, for plastic synapses, it is necessary to specify the ``postsynaptic_neuron_nestml_description``.
83
+
For plastic synapses, the synapse code needs to be generated in close combination with the
84
+
postsynaptic neuron code. For this reason, for plastic synapses, it is necessary to specify
85
+
``postsynaptic_neuron_nestml_description``. In this case the returned synapse class will have
86
+
a ``postsynaptic_cell_type`` attribute containing the co-generated neuron class.
0 commit comments