defaultclock object

(Shortest import: from brian2 import defaultclock)

brian2.core.clocks.defaultclock

An object that holds the simulation time and the time step.

Parameters:

dt : float

The time step of the simulation as a float

name : str, optional

An explicit name, if not specified gives an automatically generated name

Notes

Clocks are run in the same Network.run() iteration if t is the same. The condition for two clocks to be considered as having the same time is abs(t1-t2)<epsilon*abs(t1), a standard test for equality of floating point values. The value of epsilon is 1e-14.