Second Issue
I want to apply a 100 ms interval time between 2 consecutive inputs. (input is fed into my network through SpikeGeneratorGroup: each neuron with one input from SGG)
neuron equation is :
dv/dt = (g_l*(E_l-v) + g_e*(E_e-v) +g_i*(E_i-v)+I_ex*Input) /C_m : volt (unless refractory)
dg_e/dt = -g_e/tau_e : siemens
dg_i/dt = -g_i/tau_i : siemens
Input=stimulus(t-segment_offset):1
SGG = SpikeGeneratorGroup(1, np.zeros(100), np.zeros(100)*ms)
input_exc_syn = Synapses(SGG, exc_neurons, on_pre=‘v += w_input_e’)
input_inh_syn = Synapses(SGG, inh_neurons, on_pre=‘v += w_input_i’)
input_exc_syn.connect()
input_inh_syn.connect()
Considering SpikeGeneratorGroup gets only different spike times and I can’t apply 0 for 100 ms continously, over runs, I applied ’
stimulus = TimedArray(np.zeros(100), dt=1ms)
I_ex=1pA
SGG.active=False
But after plotting v , I’ve noticed this doesn’t work and seems no 100 ms intervals between inputs. How can I correct it?