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:
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

__init__(model: SNN)[source]#

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_synapses])

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