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

activate_all_refractory_periods()

Set the refractory period countdowns to the post-fire state.

count(value)

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

Raises ValueError if the value is not present.

reset_neuron_states()

Set the internal charge states to the reset values.

tolist()

A list of all the accessors on the SNN.

zero_neuron_states()

Set the internal charge states to zero.

zero_refractory_periods()

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_state of neurons in the list to their respective refractory_period.

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.

reset_neuron_states()[source]#

Set the internal charge states to the reset values.

Sets the state of neurons in the list to their respective reset_state.

tolist()[source]#

A list of all the accessors on the SNN.

zero_neuron_states()[source]#

Set the internal charge states to zero.

Sets the neuron_states of neurons in the list to 0.0.

zero_refractory_periods()[source]#

Set the refractory period countdowns to zero.

Sets the refractory_state of neurons in the list to 0.