superneuromat.SNN.neuron_info#

SNN.neuron_info(max_neurons=None)[source]#

Generate a description of the neurons in the SNN.

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

Here are the headers and columns which will be shown:

idx

state

thresh

leak

ref_state

ref_period

spikes

Neuron ID

Charge State

Threshold

Leak

Refractory State

Refractory Period

Spike Train

Parameters:

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

Return type:

list[str]

Examples

>>> print(snn.neuron_info())
Neuron Info (2):
   idx       state      thresh        leak  ref_state  ref_period spikes
     0          -2          -1           2          0           3 [----⋯------]
     1          -2           0           1          0           1 [-┴--⋯-┴----]

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