I need a bit help with NEURON+Python.
In hoc file, I can easily write new init procedure and it will be called from the run() function. But how can I substitute standard init() if I use Python?
I've tried something like this:
Code: Select all
def myinit():
h.finitialize()
h.fcurrent()
h.frecord_init()
h.init = myinit
h.run()
Code: Select all
Traceback (most recent call last):
File "network.py", line 583, in <module>
h.init = duminit
TypeError: not assignable
>>>
Thanks,
Ruben