In [ ]:
%matplotlib inline
import moose
import rdesigneur as rd
We will give a stimulus in the soma compartment using the inject field. The
In [ ]:
rdes = rd.rdesigneur(elecDt=1e-6, elecPlotDt = 5e-5,
stimList = [['soma', '1', '.', 'inject', '(t>0.1 && t<0.2) * 2e-8' ]], #in the last string, you can give the input as a function of t
# for example comment above line and uncomment the one below
# stimList = [['soma', '1', '.', 'inject', '(t>0.1 && t<0.2) * 2e-8 *sin(2*3.14*100*t)' ]],
plotList = [['soma', '1', '.', 'Vm', 'Soma membrane potential']] # in the 4th string, you can change other feilds to plot. (example Im)
# for example comment above line and uncomment the one below
# plotList = [['soma', '1', '.', 'Vm', 'Soma membrane potential'],['soma', '1', '.', 'inject', 'Injected current']]
)
In [ ]:
rdes.buildModel()
Initialize and run moose
In [ ]:
moose.reinit()
moose.start( 0.3 )
In [ ]:
rdes.display()