Page 1 of 1

Setting equilibrium potential in latest hg changeset

Posted: Mon Nov 24, 2008 9:54 am
by csh
Hi,
I found that there was a change in how one has to set the equilibrium potential from Python that introduced some bugs in my simulations. In versions 6.2 and 7 up to svn rev. 2227, I could set the equilibrium potential as follows:

Code: Select all

from neuron import h
s = h.Section()
s.insert("hh")
for seg in s:
    seg.ena = 55
    print seg.ena
I'm not sure whether I was ever supposed to use this syntax, but the code would print out "55". In the latest hg changeset (227), the same code will print out "50". I have to do the following now to set ena:

Code: Select all

from neuron import h
s = h.Section()
s.insert("hh")
s.ena = 55
for seg in s:
    print seg.ena

Re: Setting equilibrium potential in latest hg changeset

Posted: Tue Nov 25, 2008 11:28 am
by hines
Ugh. That error was introduced in changeset 213:1ba8f4522188 on Mon Oct 27.
It is fixed at http://www.neuron.yale.edu/hg/neuron/nr ... b244f333a9
Thanks for notifying me.