superneuromat.accessor_classes.NeuronList#

class superneuromat.accessor_classes.NeuronList(model: SNN)[source]#

Redirects indexing to the SNN’s neurons.

Returns a Neuron or a list of Neurons.

This is used to allow for the following syntax:

snn.neurons[0]
snn.neurons[1:10]
Attributes:
indices

A sorted list of all valid indices for accessors on the SNN.

ispikes
leaks
num_onmodel
refractory_periods
refractory_periods_state
reset_states
states
thresholds

Methods

count(value)

index(value, [start, [stop]])

Raises ValueError if the value is not present.

tolist()

A list of all the accessors on the SNN.

info

count(value) integer -- return number of occurrences of value[source]#
index(value[, start[, stop]]) integer -- return first index of value.[source]#

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

property indices[source]#

A sorted list of all valid indices for accessors on the SNN.

tolist()[source]#

A list of all the accessors on the SNN.