Dear all,
I am trying to implement a network consisting of LIF neurons with mixed current based and conductance based synaptic connections. Eg. one LIF neuron which gets two inputs from which one is treated as current input and the other as conductance input. That means, how to treat the input should be encoded in the synapse and not in the type of the postsynaptic neuron. Is such a neuron model already implemented or is there a way to implement this?
Thanks for your help.
Best, Hartmut
Dear Hartmut,
This should be quite straightforward if you are using NESTML to write your neuron model. Check out the documentation here for making multiple input ports: https://nestml.readthedocs.io/en/latest/nestml_language.html#multiple-input-...
Your code would look something like this:
input: spikes_curr pA <- spike # spike input port for current-based synapse spikes_cond nS <- spike # spike input port for conductance-based synapse end
equations: shape syn_kernel = exp(-t / tau_syn) function I_syn_curr pA = convolve(syn_kernel, spikes_curr) function I_syn_cond pA = convolve(syn_kernel, spikes_cond) * (V_abs - E_L - E_syn) V_abs' = -V_abs/tau_m + (I_syn_curr + I_syn_cond) / C_m end
Please let me know if this works for you.
With kind regards, Charl Linssen
On Wed, Jun 10, 2020, at 15:43, Hartmut Schmidt wrote:
Dear all,
I am trying to implement a network consisting of LIF neurons with mixed current based and conductance based synaptic connections. Eg. one LIF neuron which gets two inputs from which one is treated as current input and the other as conductance input. That means, how to treat the input should be encoded in the synapse and not in the type of the postsynaptic neuron. Is such a neuron model already implemented or is there a way to implement this?
Thanks for your help.
Best, Hartmut _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org
Dear Charl,
thanks for your help!
It really looks straightforward and I started to implement it using the existing model of the iaf_cond_exp.nestml, adapting it with your code. It works very well!
Initially, I had some problems to run nestml. I got an error by just running the model code without any adaptions using the keyword "shape".
``` errormessage /pynesml/codegeneration/nest_codegenerator.py line 362, in solve_ode_with_shapes return analysis(odes_shapes_json, enable_stiffness_check=False) TypeError: analysis() got an unexpected keyword argument 'enable_stiffness_check' ```
Looking into the code of odetoolbox where analysis is imported from, the function expects the argument `disable_stiffness_check`. As suggested in https://github.com/nest/nestml/issues/553, running the code with an older version of odetoolbox (version 1.0) fixed the problem for me.
Best regards, Hartmut