Setting equilibrium potential in latest hg changeset
Posted: Mon Nov 24, 2008 9:54 am
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:
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:
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
Code: Select all
from neuron import h
s = h.Section()
s.insert("hh")
s.ena = 55
for seg in s:
print seg.ena