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 of is.

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: int[source]#

The delay of before a spike is sent to the post-synaptic neuron.

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.

idx[source]#

The index of this synapse in the SNN.

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. See create_synapse().

info_row()[source]#

Returns a string containing information about this synapse for use in a table.

Note that a dash - is used to represent that the synapse is the last in a delay chain. See create_synapse().

property post: Neuron[source]#

The post-synaptic neuron of this synapse.

property post_id: int[source]#

The index of the post-synaptic neuron of this synapse.

property pre: Neuron[source]#

The pre-synaptic neuron of this synapse.

property pre_id: int[source]#

The index of the pre-synaptic neuron of this synapse.

property stdp_enabled: bool[source]#

If True, STDP learning is enabled on this synapse.