Dear Barna,
sorry, this somehow slipped our attention for way too long.
Can you please check if the code in
https://github.com/nest/nest-simulator/pull/2379
solves the problem for you?
Cheers,
Jochen!
On 19.02.22 01:32, Barna Zajzon wrote:
Dear all,
I'm encountering the following error
python: /home/zbarni/software/packages/nest/znest/nestkernel/model_manager.h:296:
nest::Model* nest::ModelManager::get_node_model(nest::index) const: Assertion `m <
node_models_.size()' failed.
when using the following code:
nest.SetKernelStatus({'total_num_virtual_procs': 16, 'local_num_threads':
16})
nest.Install('my_neuron_module')
for i in range(16):
nest.CopyModel('MyNeuron', f'MyNeuron_{i}')
neurons = nest.Create('MyNeuron_0', 2)
nest.Connect(neurons, neurons)
The script uses a neuron model that I wrote in C++ and is loaded without errors. The error
is thrown upon nest.Connect(), and goes away if I create the neurons using `MyNeuron` and
not `MyNeuron_x` (copied) or if the #vp and #threads is 1. I've used the model with
NEST 2.20.0 without problems, but I'd like to port the code to the latest version.
Maybe I'm just missing something new functionality/API related to CopyModel and
multiprocessing - have there been any critical changes in the model requirements?
Any help would be greatly appreciated.
Barni
_______________________________________________
NEST Users mailing list --
users@nest-simulator.org<mailto:users@nest-simulator.org>
To unsubscribe send an email to
users-leave@nest-simulator.org<mailto:users-leave@nest-simulator.org>
--
Dr. Jochen Martin Eppler
Phone: +49(2461)61-96653
----------------------------------
Simulation Laboratory 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 Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr. Astrid Lambrecht,
Prof. Dr. Frauke Melchior
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Neugierige sind herzlich willkommen am Sonntag, den 21. August 2022, von 10:00 bis 17:00
Uhr. Mehr unter:
https://www.tagderneugier.de