superneuromat.accessor_classes.SynapseList#

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

Redirects indexing to the SNN’s synapses.

Returns a Synapse or a list of Synapses.

This is used to allow for the following syntax:

snn.synapses[0]
snn.synapses[1:10]

You can take a view of a view:

snn.synapses[0:10][-5:]
Attributes:
delays
indices

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

num_onmodel
stdp_enabled
weights

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.