Am I doing correctly?
Code: Select all
from neuron import hclass, h
class MySection(hclass(h.Section)):
def printTest(self):
"Hello, I'm section %s" %self.name()
a = MySection()
Code: Select all
/usr/lib/python2.5/site-packages/neuron/__init__.pyc in __new__(cls, *args, **kwds)
137 def __new__(cls, *args, **kwds):
138 kwds.update({'hocbase':cls.htype})
--> 139 return hoc.HocObject.__new__(cls, *args, **kwds)
140 setattr(hc, 'htype', c)
141 return hc
TypeError: HOC base class not valid