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:
delay
The delay of before a spike is sent to the post-synaptic neuron.
delay_chain
Returns a list of neurons in the delay chain for this synapse.
delay_chain_synapses
A list of synapses in the delay chain for this synapse.
post
The post-synaptic neuron of this synapse.
post_id
The index of the post-synaptic neuron of this synapse.
pre
The pre-synaptic neuron of this synapse.
pre_id
The index of the pre-synaptic neuron of this synapse.
stdp_enabled
If
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()
.