Dear NESTML enthusiasts,
I'm trying to do the NESTML dopamine-modulated STDP synapse tutorial (
https://nestml.readthedocs.io/en/latest/tutorials/stdp_dopa_synapse/stdp_do…)
and get an error during the first code generation (see bottom of the
message). This is the line where it fails:
NESTCodeGeneratorUtils.generate_code_for("../../../models/neurons/iaf_psc_delta_neuron.nestml",
nestml_stdp_dopa_model, ...)
I am running the tutorial notebook as is, except for a change in the neuron
model path. I changed it like this:
NESTCodeGeneratorUtils.generate_code_for("iaf_psc_delta_neuron.nestml",
nestml_stdp_dopa_model, ...)
With this model
https://github.com/nest/nestml/blob/master/models/neurons/iaf_psc_delta_neu…
in
the same folder as the notebook.
I am using NESTML version 8.0.0rc3 and Nest 3.8.
If I only generate code for the neuron model everything is fine.
module_name, neuron_model_name = NESTCodeGeneratorUtils.generate_code_for(
"iaf_psc_delta_neuron.nestml")
[100%] Built target
nestml_24dea23d173448c9b2a52d4f6a232dbd_module_module Install
the project...
Additionally, in the SFA tutorial I am able to change the neuron model and
run it without any problems (
https://nestml.readthedocs.io/en/latest/tutorials/spike_frequency_adaptatio…
).
With all of that said, here is the error:
[1,GLOBAL, INFO]: List of files that will be processed:
[2,GLOBAL, INFO]: /home/jona/rstdp-gym/iaf_psc_delta_neuron.nestml
[3,GLOBAL, INFO]: /home/jona/rstdp-gym/neuromodulated_stdp_synapse.nestml
[4,GLOBAL, INFO]: Target platform code will be generated in directory:
'/home/jona/rstdp-gym/target'
[5,GLOBAL, INFO]: Target platform code will be installed in directory:
'/tmp/nestml_target_8uqeeze7'
-- N E S T --
Copyright (C) 2004 The NEST Initiative
Version: 3.8.0
Built: Aug 27 2024 04:33:09
This program is provided AS IS and comes with
NO WARRANTY. See the file LICENSE for details.
Problems or suggestions?
Visit
https://www.nest-simulator.org
Type 'nest.help()' to find out more about NEST.
[6,GLOBAL, INFO]: The NEST Simulator version was automatically detected as:
v3.8.0
[7,GLOBAL, INFO]: Given template root path is not an absolute path.
Creating the absolute path with default templates directory
'/home/jona/mambaforge/envs/neuro/lib/python3.11/site-packages/pynestml/codegeneration/resources_nest/point_neuron'
[8,GLOBAL, INFO]: Given template root path is not an absolute path.
Creating the absolute path with default templates directory
'/home/jona/mambaforge/envs/neuro/lib/python3.11/site-packages/pynestml/codegeneration/resources_nest/point_neuron'
[9,GLOBAL, INFO]: Given template root path is not an absolute path.
Creating the absolute path with default templates directory
'/home/jona/mambaforge/envs/neuro/lib/python3.11/site-packages/pynestml/codegeneration/resources_nest/point_neuron'
[10,GLOBAL, INFO]: The NEST Simulator installation path was automatically
detected as: /home/jona/mambaforge/envs/neuro
[11,GLOBAL, INFO]: Start processing
'/home/jona/rstdp-gym/iaf_psc_delta_neuron.nestml'!
[13,GLOBAL, INFO]: Start processing
'/home/jona/rstdp-gym/neuromodulated_stdp_synapse.nestml'!
[14,GLOBAL, ERROR]: Error occurred during parsing: abort
[15,iaf_psc_delta_neuron_nestml, WARNING, [43:0;85:0]]: Model
'iaf_psc_delta_neuron_nestml' contains errors. No code generated!
line 37:13 mismatched input '(' expecting NEWLINE
line 39:4 extraneous input 'onReceive' expecting {<EOF>, NEWLINE,
'model'}
line 40:8 extraneous input ' ' expecting {<EOF>, NEWLINE,
'model'}
line 40:4 extraneous input ' ' expecting {<EOF>, NEWLINE, 'model'}
line 43:8 extraneous input ' ' expecting {<EOF>, NEWLINE,
'model'}
line 46:8 extraneous input 'c' expecting {<EOF>, NEWLINE, 'model'}
line 46:4 extraneous input ' ' expecting {<EOF>, NEWLINE, 'model'}
line 49:8 extraneous input ' ' expecting {<EOF>, NEWLINE,
'model'}
line 52:8 extraneous input 'c' expecting {<EOF>, NEWLINE, 'model'}
line 55:8 extraneous input 'emit_spike' expecting {<EOF>, NEWLINE,
'model'}
line 55:4 extraneous input ' ' expecting {<EOF>, NEWLINE, 'model'}
line 59:8 extraneous input ' ' expecting {<EOF>, NEWLINE,
'model'}
line 63:8 extraneous input 'w' expecting {<EOF>, NEWLINE, 'model'}
line 64:8 extraneous input 'w' expecting {<EOF>, NEWLINE, 'model'}
line 65:8 extraneous input 'c' expecting {<EOF>, NEWLINE, 'model'}
line 66:8 extraneous input 'n' expecting {<EOF>, NEWLINE, 'model'}
line 66:0 extraneous input '\n' expecting {<EOF>, NEWLINE, 'model'}
Any help is appreciated.
Kind regards,
Jona