reinit function

(Shortest import: from brian2 import reinit)

brian2.core.magic.reinit()[source]

Reinitialises all Brian objects.

This function works similarly to run(), see the documentation for that function for more details.

Raises

MagicError
Error raised when it was not possible for Brian to safely guess the intended use. See MagicNetwork for more details.

See also

Network.reinit, run(), stop(), clear