Ah, OK, understood! In case you find you need to add a small bit of custom C++ code to an otherwise "standard" NESTML neuron model, you could also add this into the Jinja templates, optionally with an extra clause like {% if neuronName == "my_custom_neuron_model" %} ... {% endif %}. Optionally you can make a copy of the default templates and specify the paths to the customized copy via the mechanism described at https://nestml.readthedocs.io/en/latest/extending.html#running-nestml-with-custom-templates

Please let me know in case you run into any trouble should you decide to give this approach a chance.

On Fri, Jan 13, 2023, at 14:45, Beck Strohmer wrote:
Hi Charl, Yes, I actually started out in NESTML and was able to integrate a new neuron model in NEST so it worked really well. Unfortunately, I need to add gap junction support to my neuron model which is why I was forced to code "by hand".  

On Fri, Jan 13, 2023 at 2:41 PM Charl Linssen <nest-users@turingbirds.com> wrote:
Hi,

This is not addressing your actual question, but I just wanted to check whether you know about NESTML for writing custom neuron models (https://nestml.readthedocs.org/) and whether there were any reasons you might prefer to write the model "by hand" in C++ (there certainly might be! Just curious.)

With kind regards,
Charl


On Fri, Jan 13, 2023, at 14:38, bstrohmer@gmail.com wrote:
> I would like to install a custom neuron model in NEST so I followed the
> instructions for the nest-extension-module. It is able to build the .so
> files but it errors during the final install of the project as seen in
> the below message.
>
> Install the project...
> -- Install configuration: ""
> -- Installing:
> /home/bs/git_repos/extension/nest-simulator/result/include/piftestmodule/pif_psc_alpha.h
> -- Installing:
> /home/bs/git_repos/extension/nest-simulator/result/lib/nest/piftestmodule.so
> -- Installing:
> /home/bs/git_repos/extension/nest-simulator/result/lib/nest/libpiftestmodule.so
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File
> "/home/bs/git_repos/extension/nest-simulator/result/lib/python3.8/site-packages/nest/__init__.py",
> line 444
>     err = AttributeError(f"Cannot set attribute '{attr}' on module
> 'nest'")
>
> I am trying to install one of the example neurons provided first
> (pif_psc_alpha) so I do not expect that it is an issue within the
> source files. Thanks for any advice in correcting this issue!
> _______________________________________________
> NEST Users mailing list -- users@nest-simulator.org
> To unsubscribe send an email to users-leave@nest-simulator.org
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org