superneuromat.accessor_classes.NeuronList#
- class superneuromat.accessor_classes.NeuronList(model: SNN)[source]#
Redirects indexing to the SNN’s neurons.
Returns a
Neuronor a list of Neurons.This is used to allow for the following syntax:
snn.neurons[0] snn.neurons[1:10]
- Attributes:
indicesA 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
Set the refractory period countdowns to the post-fire state.
count(value)index(value, [start, [stop]])Raises ValueError if the value is not present.
Set the internal charge states to the reset values.
tolist()A list of all the accessors on the SNN.
Set the internal charge states to zero.
Set the refractory period countdowns to zero.
info
- activate_all_refractory_periods()[source]#
Set the refractory period countdowns to the post-fire state.
Sets the
refractory_stateof neurons in the list to their respectiverefractory_period.
- 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.
- reset_neuron_states()[source]#
Set the internal charge states to the reset values.
Sets the
stateof neurons in the list to their respectivereset_state.