I run it from python. After I import generate_target I use
generate_target(input_path=["/home/chris/CAs/sep24/nestML8_models/iaf_cond_exp_neuron.nestml","/home/chris/CAs/sep24/nestML8_models/stp_synapse.nestml"],target_platform="NEST",target_path="/home/chris/CAs/sep24/nestML8_models/targetdir",codegen_opts={"neuron_synapse_pairs":[{"neuron":"iaf_cond_exp_neuron","synapse":"stp_synapse","post_ports":["post_spikes","iaf_cond_exp_neuron"]}],"delay_variable":{"stp_synapse":"d"},"weight_variable":{"stp_synapse":"w"}})
(I’m obliged too. Thanks for the quick response.)
-Chris
From: Charl Linssen <nest-users(a)turingbirds.com>
Sent: 18 September 2024 13:27
To: users(a)nest-simulator.org
Subject: [NEST Users] Re: stp synapse nestml errror
Hi Chris,
Thank you for the report! That shouldn't be the case; could you perhaps send your
invocation to generate_code() so we can double-check the parameters? It works for me when
I use the following:
codegen_opts = {"neuron_synapse_pairs": [{"neuron":
"iaf_psc_exp_neuron",
"synapse":
"stp_synapse",
"post_ports":
["post_spikes"]}],
"delay_variable": {"stp_synapse":
"d"},
"weight_variable": {"stp_synapse":
"w"}}
input_path = [os.path.join("models", "neurons",
"iaf_psc_exp_neuron.nestml"),
os.path.join("models", "synapses",
"stp_synapse.nestml")]
generate_nest_target(input_path=input_path,
logging_level="DEBUG",
suffix="_nestml",
codegen_opts=codegen_opts)
I am looking into your PyNN issue and will try to report back on that as soon as I can.
Much obliged,
Charl
On Wed, Sep 18, 2024, at 11:46, Chris Huyck wrote:
I’m trying to make a Hebbian Short Term plasticity model. I got the stdp_synapse working,
and then tried to change that to stp. I kept getting the error stp_synapse not found in
pynest. So, I just started from the static synapse, and modified that to get an
stp_synapse that wasn’t Hebbian. When I introduced the post_synaptic neuron into the
model, the stp_synapse not found error returns. Oddly, in the generated files (.h, .cpp,
in stp_synapse__with_iaf_cond_exp_neuron and iaf_cond_exp_neuron__with_stp_synapse) there
is a function for register stdp_synapse. (If you want to duplicate this, just change the
stdp_synapse model name to stp_synapse).
-Chris
_______________________________________________
NEST Users mailing list --
users@nest-simulator.org<mailto:users@nest-simulator.org>
To unsubscribe send an email to
users-leave@nest-simulator.org<mailto:users-leave@nest-simulator.org>