Open Geenetto opened 3 weeks ago
@Geenetto thank you for writing in!
You will need to pass additional options (codegen_opts
) to the generate_target()
function for NESTML to know for which neuron the synapse should be paired. You could do this as follows:
from pynestml.frontend.pynestml_frontend import generate_target
generate_target(
input_path="nestml_folder/",
target_platform="NEST",
target_path="build_directory/",
module_name="my_module",
codegen_opts = {"neuron_synapse_pairs": [{"neuron": "iaf_psc_exp",
"synapse": "neuromodulated_stdp",
"vt_ports": ["dopa_spikes"]}]
})
The above code generates the code for iaf_psc_exp
paired with the neuromodulated_stdp
synapse. You could replace iaf_psc_exp
with the neuron model of your choice.
All the information can also be found in our docs: https://nestml.readthedocs.io/en/latest/nestml_language/synapses_in_nestml.html#id9
We are working on the docs to make this easily reachable. Hope this helps!
Using the released nestml 7.0.2 version and nest 3.7.0, I am trying to compile the following nestml file: the neuromodulated_stdp model. Using python 3.10.12:
This script results in the following error:
Is this issue related to NEST or NESTML? Should I use the latest version of NESTML (master branch)?