NetworkOperation class¶
(Shortest import: from brian2 import NetworkOperation)
-
class
brian2.core.operations.
NetworkOperation
(function, dt=None, clock=None, when='start', order=0)[source]¶ Bases:
brian2.core.base.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'
.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
function
The function to be called each time step Methods
run
()Details
-
function
¶ The function to be called each time step
-