Code: Select all
[1] neuron -python
NEURON -- VERSION 6.2.1028 (2151) 2008-06-18
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2007
See http://www.neuron.yale.edu/credits.html
>>> import neuron
>>> h = neuron.h
>>> import nrn
>>>
>>> h.nrn_load_dll('/Users/foo/bar/myMech/i686/.libs/libnrnmech.so')
loading membrane mechanisms from /Users/foo/bar/myMech/i686/.libs/libnrnmech.so
Additional mechanisms from files
expSyn1.mod myMechBad.mod myMechGood.mod myMechSimple.mod
1.0
>>> postCell = nrn.Section()
>>> postCell.L = 20
>>> postCell(0.5).diam=20
>>> myMech = nrn.myMechSimple(postCell(0.5))
>>>
>>>
>>> preCell0 = nrn.Section()
>>> preCell0.L = 20
>>> preCell0(0.5).diam = 20
>>> preCell0.insert('pas')
<nrn.Section object at 0x7a4060>
>>> preCell0.insert('hh')
<nrn.Section object at 0x7a4060>
>>>
>>> h.NetCon(preCell0(0.5)._ref_v,myMech)
Bus error
[2]
I suppose I may be doing something wrong, but it still seems like I ought to get an error message rather than crashing NEURON.
I'm using NEURON 6.2.1028 (unthreaded version) built from source, on a MacBook Pro running OSX 10.5.2
Here is the .mod file for the myMechSimple mechanism:
Code: Select all
NEURON {
POINT_PROCESS myMechSimple
}
NET_RECEIVE (w0) {
printf("w0:\t%g\n",w0)
}