Dear all!
The problem reported below is finally gone due to the merge of
https://github.com/nest/nest-simulator/pull/2379.
Happy model copying ;-)
Jochen!
On 09.05.22 01:35, Barna Zajzon wrote:
Hi Jochen,
the changes in the PR do solve the problem, thanks so much! Not sure whether the response
should've gone the the whole mailing list, so just replying to you.
Best,
Barna
On 5/4/22 2:13 PM, Jochen Martin Eppler wrote:
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
Barna Zajzon
PhD Candidate
Computation in Neural Circuits Group
Institute of Neuroscience and Medicine (INM-6)
Institute for Advanced Simulation (IAS-6)
JARA Institute Brain Structure-Function Relationships (INM-10)
Jülich Research Centre and JARA
52425 Jülich, Germany
http://www.fz-juelich.de/inm/inm-6
--
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
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------