superneuromat.SNN.synapse_info#

SNN.synapse_info(max_synapses=None)[source]#

Generate a description of the synapses in the SNN.

Generates a list of strings which can be printed, which shows a table of the synapses in the SNN. The first line also shows the number of synapses in the SNN.

Here are the headers and columns which will be shown:

idx

pre

post

weight

delay

stdp_enabled

Synapse ID

Pre-synaptic Neuron ID

Post-synaptic Neuron ID

Weight

Delay

STDP Enabled

The stdp_enabled column will contain either Y or - if the synapse allows STDP updates or not, respectively.

Parameters:

max_synapses (int, optional) – If more than max_synapses synapses are in the SNN, only the first and last max_synapses // 2 synapses will be printed.

Return type:

list[str]

Examples

>>> print(snn.synapse_info())
Synapse Info (2):
  idx     pre   post         weight     delay   stdp_enabled
    0       0      1              1         1   -
    1       1      0              4         1   Y

These functions generate parts of the table above: Synapse.row_header(), Synapse.info_row(), Synapse.row_cont()