I am trying to connect two exponential LIF with alpha shape synapse.
following the documentation for brian2 equivalence of alpha_conductance
tau = 2.5*ms; E = 0*mV
syn_eqs = Equations('''dg_syn/dt = (s - g_syn)/tau : siemens
ds/dt = -s/tau : siemens''')
group = NeuronGroup(N, eqs, threshold='vm>-50*mV', reset='vm=-70*mV')
syn = Synapses(source, group, on_pre='s += 10*nS')
# ... connect synapses, etc.
I wrote this:
**Edited **
eqs_e = """
Im = IX +
gL * (EL - vm) +
gL * DeltaT * exp((vm - VT) / DeltaT) : amp
dvm/dt = (Im + I_syn_e) / C : volt
VT : volt
IX : amp
I_syn_e : amp
"""
eqs_syn_e = """
dg_syn_e/dt = (s_e - g_syn_e) / Tau_e : siemens (event-driven)
ds_e/dt = -s_e / Tau_e : siemens (event-driven)
I_syn_e_post = g_syn_e * (Erev_e - vm): amp (summed)
"""
E_cells = b2.NeuronGroup(E_cell_params['Ncells'],
model=eqs_e,
dt=dt,
method=integration_method,
threshold="vm > 0.*mV",
reset="vm=-65*mV"),
refractory="vm > 0.*mV",
namespace=param_E_syn)
cEE = b2.Synapses(E_cells, E_cells, eqs_syn_e,
on_pre='g_syn_e += 0.1*nsiemens'),
namespace=param_E_syn)
cEE.connect(i=0, j=1)
witch give me this error:
KeyError: 'The identifier "g_syn_e" could not be resolved.'
I also want to integrate the synapse as (event-driven)
. I am not sure whether it is possible here.
Thanks for any guide.