IndexWrapper class¶
(Shortest import: from brian2.groups.group import IndexWrapper)
- class brian2.groups.group.IndexWrapper(group)[source]¶
Bases:
objectConvenience class to allow access to the indices via indexing syntax. This allows for example to get all indices for synapses originating from neuron 10 by writing
synapses.indices[10, :]instead ofsynapses._indices.((10, slice(None)).