Hi,
Just one more suggestion on an approach you could use that does not involve restarting the kernel: we implemented a helper function that, in lieu of module unloading/reloading, simply adds a unique suffix to each generated module and neuron name. You can find a draft of this code here: https://github.com/nest/nestml/pull/791 and some usage examples, for example, here: https://nestml.readthedocs.io/en/v5.2.0/tutorials/stdp_windows/stdp_windows....
If you would like to use this option, please let us know how well it works for you and if there's anything we could still improve.
Many thanks! Charl
On Thu, Apr 20, 2023, at 22:43, Jochen Martin Eppler wrote:
Hi!
Reloading modules in NEST is currently not possible. We are working on this, but it might still be some weeks until the feature will become available.
The only solution for now is to restart Python or your Jupyter Kernel.
Regarding debugging of NESTML models, in addition to what Maryada said, the most obvious answer is to just print out things, see here: https://nestml.readthedocs.io/en/v5.2.0/nestml_language/nestml_language_conc...
Cheers, Jochen!
On 20.04.23 20:59, gustavo.patow@udg.edu wrote:
Hi, Continuing with my exploration, I am now developing my own nestML module. I successfully compiled it and ran it without errors or problems. However, the result was not what I expect, so I modified the nestML code, compiled it, and... well, I tried to re-install it with nest.Install("nestmlmodule") and I get an error that the module was already loaded. When I try to rerun my simulation, I get the old result, not the new one. How do I do to reload the module? I've searched through the documentation and I do not find any reload, reinstall, or anything similar... Is there any other way than killing everything and starting over from scratch?
By the way, are there any debug tools for a nestML module? I tend to make zillions of mistakes, and any way of inspecting the behavior of the module and the state of the internal variables would be of incredible help!
thanks!!! gus.- _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org
-- Dr. Jochen Martin Eppler (he/him) Simulation and Data Lab Neuroscience Jülich Supercomputing Centre Institute for Advanced Simulation
Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Stefan Müller Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Dr. Ir. Pieter Jansens, Prof. Dr. Astrid Lambrecht, Prof. Dr. Frauke Melchior
NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org
Attachments:
- smime.p7s