Page 1 of 1

Inconsistent results with MechanismStandard

Posted: Fri Nov 07, 2014 3:27 pm
by lcampagn
I am trying to understand how to use MechanismStandard, but it is returning inconsistent results in some situations. For example:

Code: Select all

from neuron import h
#s = h.Section()
#s.insert('hh')
ms = h.MechanismStandard('k_ion', 1)
print ms.count() 
As written, the output is 3. If I uncomment the line that creates the section, then the output is 0. If I further uncomment the `insert` line, then the output is 1.
Is this the intended behavior?