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
- num_onmodel
Methods
append
(object, /)Append object to the end of the list.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
extend
(iterable, /)Extend list by appending elements from the iterable.
index
(value[, start, stop])Return first index of value.
insert
(index, object, /)Insert object before index.
pop
([index])Remove and return item at index (default last).
remove
(value, /)Remove first occurrence of value.
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Sort the list in ascending order and return None.
info
tolist
Methods
__init__
(model)append
(object, /)Append object to the end of the list.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
extend
(iterable, /)Extend list by appending elements from the iterable.
index
(value[, start, stop])Return first index of value.
info
([max_neurons])insert
(index, object, /)Insert object before index.
pop
([index])Remove and return item at index (default last).
remove
(value, /)Remove first occurrence of value.
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Sort the list in ascending order and return None.
tolist
()Attributes
indices
num_onmodel
accessor_type
listview_type