Group class¶
(Shortest import: from brian2 import Group)
-
class
brian2.groups.group.Group(**kwds)[source]¶ Bases:
brian2.groups.group.VariableOwner,brian2.core.base.BrianObjectMethods
custom_operation(*args, **kwds)resolve_all(identifiers, run_namespace[, …])Resolve a list of identifiers. run_regularly(code[, dt, clock, when, …])Run abstract code in the group’s namespace. runner(*args, **kwds)Details
-
resolve_all(identifiers, run_namespace, user_identifiers=None, additional_variables=None)[source]¶ Resolve a list of identifiers. Calls
Group._resolvefor each identifier.
-
run_regularly(code, dt=None, clock=None, when='start', order=0, name=None, codeobj_class=None)[source]¶ Run abstract code in the group’s namespace. The created
CodeRunnerobject will be automatically added to the group, it therefore does not need to be added to the network manually. However, a reference to the object will be returned, which can be used to later remove it from the group or to set it to inactive.
-