NetworkOperation class
(Shortest import: from brian2 import NetworkOperation)
- class brian2.core.operations.NetworkOperation(*args, **kw)[source]
Bases:
BrianObject
Object with function that is called every time step.
- Parameters:
function : function
dt :
Quantity
, optionalThe time step to be used for the simulation. Cannot be combined with the
clock
argument.clock :
Clock
, optionalThe update clock to be used. If neither a clock, nor the
dt
argument is specified, thedefaultclock
will be used.when : str, optional
In which scheduling slot to execute the operation during a time step. Defaults to
'start'
. See Scheduling for possible values.order : int, optional
The priority of this operation for operations occurring at the same time step and in the same scheduling slot. Defaults to 0.
See also
Attributes
The function to be called each time step
Methods
run
()Details
- function
The function to be called each time step