In [1]:
from brian import *
In [2]:
eqs = Equations("""
X = xi : second**-.5
dg/dt = (g + X*siemens*meter**-2*second**.5)/second : siemens*meter**-2"""
)
In [3]:
ng = NeuronGroup(1, model=eqs)
ng.g = 0
print ng._eqs
In [4]:
monit = {}
for p in ['g', 'X']:
monit[p] = StateMonitor(ng, p, record=True)
In [5]:
run(500*msecond, report="text")
In [6]:
for p in monit:
figure()
monit[p].plot()
ylabel(p)
show()