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