I've decided to write .mod files for my synaptic models. The AMPA one was easy enough, but I'm struggling to implement my NMDA model in NMODL. Here's the model:
s' = - 1 / tau_s * s + alpha_s * x * (1 - s)
x' = -1 / tau_x * x + sum_i(delta(t - t_i)),
where s is the fraction of open channels, x is an intermediate gating variable, t_i are the presynaptic spike times, tau_s = 100 ms (decay time), tau_x = 2 ms (rise time), and alpha_s = 0.5 kHz.
What's confusing me is how to get access inside the .mod file to whether there are any other coincident spikes. NET_RECEIVE accomplishes this, I think, but I don't see how I can use NET_RECEIVE as a term in the equation for x', which is what is needed.
This isn't a PyNN issue, really, but I figured I'd share this to see whether anyone has any ideas. My goal is to have the ultimate model be run using PyNN.
-- Dan