Setting equilibrium potential in latest hg changeset

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
csh
Posts: 52
Joined: Mon Feb 06, 2006 12:45 pm
Location: University College London
Contact:

Setting equilibrium potential in latest hg changeset

Post 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
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Setting equilibrium potential in latest hg changeset

Post 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.
Post Reply