restore_initial_state function

(Shortest import: from brian2 import restore_initial_state)

brian2.only.restore_initial_state()[source]

Restores internal Brian variables to the state they are in when Brian is imported

Resets defaultclock.dt = 0.1*ms, defaultclock.t = 0*ms, clear() all objects and BrianGlobalPreferences._restore preferences.