Open edovanveen opened 1 year ago
I'm not sure if it should be, in the sense that unless somebody wants to reset things, there's no fundamental reason that from one line of code to the next NEURON should forget things...
For the NEURON CI, we have fixtures that control our automated tests that explicitly reset certain things and make sure there are no Sections before or anything like that. See, for example, https://github.com/neuronsimulator/nrn/blob/1d4695b17e8d666154a23ea1e8c9a88838c889e1/test/rxd/conftest.py#L34
Currently upon rerunning a script the Neuron state is not reset fully. Links that are probably useful: https://nl.mathworks.com/help/matlab/ref/clibraryconfiguration.unload.html https://nl.mathworks.com/help/matlab/ref/matlab.cppclient.clibraryconfiguration.html