I am working with a network of PYR and PVN neurons. For the PYR neurons, I have created two spike event-dependent variables: PYR.u is a unitless spike frequency adaptation variable, while PYR.f is a unitless spike-induced synaptic strength variable. When I run simulations over 4 sec with increasing applied current, I see the expected spike-induced increases in PYR.u, but not in PYR.f (image attached). There are no error messages. I must have a logic error in my code. Suggestions? I apologize for amount of code included. Thx
Following up on my earlier query, my code is errant in two ways. First, as stated before, a spike is inducing a step increase in adaptation factor u, but is failing to induce a step in the STP factor f. Secondly, my synapse code is flawed because, as written, the synaptic factor f would correspond to prior spiking of the postsynaptic target neuron, not the source neuron.
Hi @MitchG_HunterCollege. To avoid copy&pasting/formatting issues, please make sure to include your code in triple backticks or use the “Preformatted text” option from the toolbar (I edited your post accordingly):
```
# Python code
print("Hello!")
```
Regarding the variable f, it seems to update fine – could you please share the code you used to record and plot it? If I add the following to your code from above:
In the synaptic equations, you can to refer to either f_pre or f_post, for the respective pre-/post-synaptic variable. As a shorthand, you are also allowed to write f instead of f_post. Note that you do not need to use f_syn = f_pre – the other equations can directly refer to f_pre.
Oh, one more thing: I saw that you used delay = ... as part of your on_pre statement. Note that changes to the delay variable are not taken into account while a simulation is running, they only affect subsequent runs. See Delay Plasticity Only Working in One Direction - #4 by mstimberg for a related discussion.
Hello, Marcel. Thank you for your input. I have tried using the term f_pre in the excitatory synapse model. While the simulations run without error abort, I am still not seeing the factor f increase in neurons as they spike. I don’t think we can resolve this issue by our posting minimal codes on this discussion thread. Would you allow me to provide you my entire code sent to your email? If you can then find my essential syntax errors, you could share these on the discussion thread. Thanks, Mitch