clear
=True, neurons=True, synapses=True, constants=True) core.Global.clear(functions
Clears all variables (erasing already defined populations, projections, monitors and constants), as if you had just imported ANNarchy.
Useful when re-running Jupyter/IPython notebooks multiple times:
import ANNarchy as ann
ann.clear()
Parameters
Name | Type | Description | Default |
---|---|---|---|
functions | bool | if True (default), all functions defined with add_function are erased. |
True |
neurons | bool | if True (default), all neurons defined with Neuron are erased. |
True |
synapses | bool | if True (default), all synapses defined with Synapse are erased. |
True |
constants | bool | if True (default), all constants defined with Constant are erased. |
True |