I’m not that experienced with Brian2, so this may be a stupid question, but I’m trying I want to know whether a neuron can excite conditionally, so I have 5 neurons, neuron 0 is connected to neurons 1, 2, 3, 4
I have a LIF model and I want it so when an input voltage is put into neuron 0 AND condition 1 == True, then neuron 1 is excited. If condition 2 is true, neuron 2 is excited etc.
I know what I want my system to do, but I’m not sure how to do it.
Sorry if this was explained badly. Do I need to change my equation?
lif = ''' dv/dt = -(gl * (v - vl) + ge * (v - ve) + gi *(ve - vi) - I)/c : volt dge/dt = -ge / ge_tau : siemens dgi/dt = -gi / gi_tau : siemens I : amp ''' ''' If neuron 0 has an input voltage AND cell0 = True, excite neuron 1 If neuron 0 has an input voltage AND cell1 = True, excite neuron 2 If neuron 0 has an input voltage AND cell2 = True, excite neuron 3 If neuron 0 has an input voltage AND cell3 = True, excite neuron 4 ''' # 1st to 2nd layer G = NeuronGroup(5, lif, threshold='v > -40*mV', reset='v = vl', refractory=3*ms, method='euler') G.I = [0.7, 0, 0, 0, 0]*nA # input current for 0, 1, 2, 3, 4 neurons G.v = [-70, -70, -70, -70, -70]*mV # intial voltage for 0, 1, 2, 3, 4 neurons (resting V) # Se = excitory connection # Si = inhibitory connection Se = Synapses(G, G, on_pre='ge_post += w_ge') Se.connect(i=0, j=1) Se.connect(i=0, j=2) Se.connect(i=0, j=3) Se.connect(i=0, j=4)
I’ve looked through the documentation thoroughly and found nothing that can help with my problem