In [1]:
import moose
import pylab
import rdesigneur as rd
In [2]:
rdes = rd.rdesigneur(
chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], #definitions of the Na and the K channels
chanDistrib = [
['Na', 'soma', 'Gbar', '1200' ], #1:which channel 2:where 3:Gbar = channel density 4:whatis the density in SI units
['K', 'soma', 'Gbar', '360' ] #try to change the values of the densities to see different behaviour
],
stimList = [['soma', '1', '.', 'inject', '(t>0.1 && t<0.2) * 1e-8' ]],
plotList = [['soma', '1', '.', 'Vm', 'Membrane potential']
,['soma', '1', 'Na', 'Ik', 'Na Channel Current']
,['soma', '1', 'K', 'Gk', 'K Channel conductance']
]
)
The fields which plotList understands is 'Ik','Ca', 'Im', 'inject', 'conc', 'Gbar', 'Gk', 'Vm', 'n'
In [3]:
#moose.showfields(rdes.soma)
In [4]:
rdes.buildModel()
moose.reinit()
moose.start( 0.3 )
rdes.display()
In [5]:
#moose.le(rdes.soma)
na=moose.element('/model[0]/elec[0]/soma[0]/Na[0]')
moose.showfields(na)