Recording the m,h,n gating variables
Posted: Fri Jul 24, 2015 4:08 pm
I have built a channel in Channel Builder, saved as a session file and loaded into Python. But when I tried to record the State Gating variables, I have discovered that there is no reference to them, like there is in the 'hh' model. Here is the python code.
And the error,
AttributeError: 'nrn.Mechanism' object has no attribute '_ref_m'
Do I need to create a Mod file like 'hh'?
Code: Select all
# Load in Channels
h.load_file('/Users/Doni/Channels/KDR.ses')
h.load_file('/Users/Doni/Channels/NA.ses')
h.load_file('/Users/Doni/Channels/leak.ses')
# Create Soma and insert the channels
soma = Section()
soma.insert('KDR')
soma.insert('Na')
soma.insert('leak') vm, vh, vn = [h.Vector() for x in xrange(3)] # record the m,h,n gating variables
# Record state variable gates
vm.record(soma(0.5).KDR._ref_m)
vh.record(soma(0.5).Na._ref_h)
vn.record(soma(0.5).Na._ref_n)
AttributeError: 'nrn.Mechanism' object has no attribute '_ref_m'
Do I need to create a Mod file like 'hh'?