Hi there,
I am trying to define a code which turns an input current (Ornstein-Uhlenbeck process) on and off at specific times, and connect it to a small specific subpopulation of neuron group E with a specific weight:
E=NeuronGroup(…)
I=NeuronGroup(…)
myclock=Clock(dt=1*ms)
@network_operation(myclock)
def update_input():
if myclock.t >= stim_on and myclock.t < stim_off:
I1 = i1[:,int( (myclock.t - stim_on) / (1 * ms))] * amp
I2 = i2[:,int( (myclock.t - stim_on) / (1 * ms))] * amp
else:
I1 = 0 * amp
I2 = 0 * amp
net = Network(E, I)
net.run(runtime)
Now, if I am not mistaken, I1 and I2 are formed and I am going to insert these currents to two distinct subpopulations of E neuron groups, lets say E1 and E2.
How should I do that? Defining different subpopulation via different neuron groups? or …
To the best of my knowledge, in Brian1 that was simply done by E1.I =I1,etc.
Regards,
Hedyeh