Page 1 of 1

Missing variable in Imp1

Posted: Thu Jan 04, 2007 7:13 am
by csh
Hi,
while using the "Imp1" wrapper class defined in share/lib/hoc/impedanc.hoc, I found that extended was used in Imp1.compute() without having been declared. Adding it to the public member list and initializing it to 0 in init() made the class work fine. Did I make a mistake while using the class or is extended missing in the public members' list?
Christoph

Posted: Thu Jan 04, 2007 12:26 pm
by hines
Hmm. I see that "extended" is public and gui managed in the four Impedance class wrappers invokable from NEURONMainMenu/Tools/Impedance. It should also be public in nrn/lib/hoc/impedanc.hoc . At present its default value is 0 and hard to change at the interpreter top level. I have to admit that I had forgotten that the Imp1 wrapper existed.