Search found 3 matches

by hnakhoul
Fri Feb 27, 2009 5:55 pm
Forum: NEURON + Python
Topic: recording a STATE variable with _ref_
Replies: 5
Views: 4594

Re: recording a STATE variable with _ref_

I found the problem--I neglected to include the suffix of the mod file when referencing the variable. The syntax should have been

Code: Select all

vec['cai'].record(soma(0.5)._ref_ca_i_suffix,sec=soma)
by hnakhoul
Fri Feb 27, 2009 11:22 am
Forum: NEURON + Python
Topic: recording a STATE variable with _ref_
Replies: 5
Views: 4594

Re: recording a STATE variable with _ref_

Dear Michael, I tried including the accessed section as a keyword arg, but I got the same error message. I did intend ca_i and not cai (the model was written not to use NEURON's cai). I have similar difficulty recording other STATE variables defined in mod files, although other variables, like v and...
by hnakhoul
Thu Feb 26, 2009 6:31 pm
Forum: NEURON + Python
Topic: recording a STATE variable with _ref_
Replies: 5
Views: 4594

recording a STATE variable with _ref_

Dear all, I'm running a model using NEURON as an extension to Python and attempting to record a STATE variable ("ca_i") from one of the mod files into a vector: vec = {} vec['cai'] = h.Vector() vec['cai'].record(soma(0.5)._ref_ca_i)) but I obtained the following error: NameError: _ref_ca_i...