Hi Chris,

Sorry for the confusion. For NEST synapses, you need to specify a variable in the model that will be treated as a special "synaptic weight" variable (could be a state or a parameter), and another variable that will be treated as "synaptic delay" (can only be a parameter). There is some documentation about this feature on https://nestml.readthedocs.io/en/latest/running/running_nest.html#dendritic-delay-and-synaptic-weight, but the error messages are a bit cryptic. I have filed a pull request to make the errors a bit more user-friendly at https://github.com/nest/nestml/pull/1098. Thanks very much for the feedback and please let us know if you run into any further issues.

With kind regards,
Charl

On Fri, Sep 13, 2024, at 15:09, Chris Huyck wrote:

It was straight forward to install nestml 8.0.0.  The version is 8.0.0-rc2.  I got the integrate_and_fire_neuron model from the latest models , and that worked.  I then tried a noisy_synapse, and that didn’t work.  Nor did static_synapse or stdp_synapse. 

 

I get a

 

KeyError: ‘static_synapse’

From nest_code_generator.py

delay_variable = self.get_option(“delay_variable”)[synapse_named_stripped]

 

with the error pointing to synapse_name_stripped.  This is the same error I get with the other two synapses.

 

Any thoughts?

-Chris

 

From: Charl Linssen <nest-users@turingbirds.com>
Sent: 24 July 2024 11:17
To: users@nest-simulator.org
Subject: [NEST Users] Re: stdp synapse nestml erro

 



Hi Chris,

 

We have a release candidate out for NESTML 8.0.0, as there were some big changes since the last version, could I ask you to work with that? It should be easy to install using "pip install --pre nestml"; please let us know if you run into any issues.

 

To generate the code for an STDP synapse, you need to tell the code generator that there is one spiking input in the synapse model that should be connected to the postsynaptic partner. Please see here for documentation:

 

https://nestml.readthedocs.io/en/latest/running/running_nest.html#generating-code-for-plastic-synapses

 

And see here for a usage example:

 

https://nestml.readthedocs.io/en/latest/tutorials/stdp_windows/stdp_windows.html

 

Hope this helps!

 

With kind regards,

Charl

 

 

On Tue, Jul 23, 2024, at 12:16, Chris Huyck wrote:

I’m working with the nestml 7.0.2. I got the example models from https://github.com/nest/nestml/blob/v7.0.2/models/neurons/hill_tononi.nestml this git tree.  I tried three different stdp models including stdp_triplet_naive.nestml. All give

AssertionError: Synapses only support one spiking input port

when I generate_target in python.

 

-Chris

 

_______________________________________________

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