restore function

(Shortest import: from brian2 import restore)

brian2.core.magic.restore(name='default', filename=None)[source]

Restore the state of the network and all included objects.


name : str, optional

The name of the snapshot to restore, if not specified uses 'default'.

filename : str, optional

The name of the file from where the state should be restored. If not specified, it is expected that the state exist in memory (i.e. was previously called without the filename argument).