NEST Desktop target
NESTML features supported: neurons
The aim of the NEST Desktop as target is to generate json files for the neuron models. The resulting file contains details about the state variables, parameters and their initial values defined in their respective .nestml files. The json files are used to load them in the NEST Desktop user interface.
For example, for the neuron model iaf_psc_exp, the json file will be generated by running the generate_target function with target_platform option set to NEST_DESKTOP.
from pynestml.frontend.pynestml_frontend import generate_target
generate_target(input_path="/home/nest/work/pynestml/models/neurons/iaf_psc_exp.nestml",
target_platform="NEST_DESKTOP",
target_path="/tmp/nestml_target")
Code generation options
Several code generator options are available; for an overview see pynestml.codegeneration.nest_desktop_code_generator.NESTDesktopCodeGenerator.