Indexing class
(Shortest import: from brian2.groups.group import Indexing)
- class brian2.groups.group.Indexing(group, default_index='_idx')[source]
Bases:
object
Object responsible for calculating flat index arrays from arbitrary group- specific indices. Stores strong references to the necessary variables so that basic indexing (i.e. slicing, integer arrays/values, …) works even when the respective
VariableOwner
no longer exists. Note that this object does not handle string indexing.Methods
__call__
([item, index_var])Return flat indices to index into state variables from arbitrary group specific indices.
Details