LinkedVariable class¶
(Shortest import: from brian2.core.variables import LinkedVariable)
- class brian2.core.variables.LinkedVariable(group, name, variable, index=None)[source]¶
Bases:
objectA simple helper class to make linking variables explicit. Users should use
linked_var()instead.- Parameters
group :
GroupThe group through which the
variableis accessed (not necessarily the same asvariable.owner.name : str
- The name of
variableingroup(not necessarily the same as variable.name).
variable :
VariableThe variable that should be linked.
index : str or
ndarray, optionalAn indexing array (or the name of a state variable), providing a mapping from the entries in the link source to the link target.
- The name of