I have a strange architecture-specific problem with NetCons connecting cells inside objects.
Consider the following code:
Code: Select all
from neuron import h
class Dummy(object):
pass
a = Dummy()
a.source = h.NetStim(0.5)
a.target = h.NetStim(0.5)
a.nc = h.NetCon(a.source, a.target)
h.load_file("stdrun.hoc")
h.run()
Code: Select all
python
Python 2.6.5 (r265:79063, May 28 2010, 10:39:40)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from neuron import h
MPI_Initialized==false, disabling MPI functionality.
NEURON -- VERSION 7.2 (?:?) 1999-12-31
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
>>>
>>> class Dummy(object):
... pass
...
>>> a = Dummy()
>>>
>>> a.source = h.NetStim(0.5)
>>> a.target = h.NetStim(0.5)
>>>
>>> a.nc = h.NetCon(a.source, a.target)
>>>
>>> h.load_file("stdrun.hoc")
1.0
>>> h.run()
0.0
>>> exit()
Segmentation fault
NEURON mercurial revision number is 475.
Any ideas? Thank you for your help!