jamest212
unread,Jul 26, 2009, 7:44:18 PM7/26/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Brian
Hello,
I am trying to figure out how to use the alpha_synapse subclass, and
have been trying to implement it in a very simple model of a couple of
Poisson spiking neurons, sending input in to a third neuron, with the
connection being modeled by an Alpha synapse.
Here is what I am doing:
######
from brian import *
from brian.library.synapses import *
taue = 5*ms
gl = 20*nS
El = -60*mV
Vt = -50*mV
Vr = -60*mV
eqs = MembraneEquation(C=200*pF)
eqs += Current('I=gl*(El-vm):amp')
eqs += alpha_conductance(input='ge',E=Ee, tau=taue)
input = PoissonGroup(2,rates=50*Hz)
G = NeuronGroup(N=1, model = eqs, threshold=Vt, reset = Vr)
C = Connection(input,G,'ge')
Mvm = StateMonitor(G,'vm',record=True)
Mge = StateMonitor(G,'ge',record=True)
run(100*ms)
figure()
subplot(211)
plot(Mvm,times,Mv[0])
subplot(212)
plot(Mge.times,Mge[0])
show()
#############
When I observe the states of vm and ge, vm stays at rest, and for
obvious reasons: ge never moves. If I am making some foolish error
here, I would be grateful if someone were to point it out.
I was not sure from the documentation how to assign the "max value" to
the synapse conductance (I did read that it is normalized to a max of
1).
If I try to assign a "weight" in the connection, it seems to just
treat the conductances as exponential conductances.
I hope I am not overlooking something obvious in the documentation.
Thank you very much,
James Trousdale