Code: Select all
class DummyCell(object):
def __init__(self):
self.soma = h.Section( name = 'soma', cell = self )
self.dend = h.Section( name = 'dend', cell = self )
self.axon = h.axon( name = 'axon', cell = self )
....
The problem comes if I want to import the topology from a hoc file
Code: Select all
class PyramidalCell(object):
def __init__(self, hoc_file):
h.load_file(hoc_file)
self.soma = h.soma
self.dend = h.dend
self.axon = h.axon
....
Code: Select all
mycell1 = PyramidalCell(topology1.hoc')
mycell2 = PyramidalCell('topology2.hoc')
Thanks in advance