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.