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