superneuromat.Synapse#
- class superneuromat.Synapse(model: SNN, idx: int)[source]#
Synapse accessor class for synapses in an SNN
Warning
Instances of Synapse are created at access time and are not unique. Multiple instances of this class may be created for the same synapse on the SNN. To test for equality, use
==instead ofis.- Attributes:
delayThe delay of before a spike is sent to the post-synaptic neuron.
delay_chainReturns a list of neurons in the delay chain for this synapse.
delay_chain_synapsesA list of synapses in the delay chain for this synapse.
postThe post-synaptic neuron of this synapse.
post_idThe index of the post-synaptic neuron of this synapse.
preThe pre-synaptic neuron of this synapse.
pre_idThe index of the pre-synaptic neuron of this synapse.
stdp_enabledIf
True, STDP learning is enabled on this synapse.- weight
Methods
info()Returns a string containing information about this synapse.
info_row()Returns a string containing information about this synapse for use in a table.
row_cont
row_header
- property delay_chain[source]#
Returns a list of neurons in the delay chain for this synapse.
The list is in the same order that spikes will pass through the chain.
Returns
[]if synapse is not the last synapse in a delay chain.
- property delay_chain_synapses[source]#
A list of synapses in the delay chain for this synapse.
The list is in the same order that spikes will pass through the chain.
Returns
[]if synapse is not the last synapse in a delay chain.
- info()[source]#
Returns a string containing information about this synapse.
Note that a dash
-is used to represent that the synapse is the last in a delay chain. Seecreate_synapse().