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
,BrianGlobalPreferences._restore
preferences, and setBrianObject._scope_current_key
back to 0.