Im very much using the python interface for neuron and I want now to start some huge calculation now for which I need parallel computing ...
For python there is a wonderful package that provides parallel computing in a very simple way (http://www.parallelpython.com) ...
In the parallel function one need to import neuron on each processor.
The script looks like this:
Code: Select all
import pp
def test():
import neuron
h = neuron.h
h.load_file("stdrun.hoc")
h("create soma")
h("access soma")
h.init()
h.run()
h("voltage = v")
return h.voltage
ppservers = ("192.168.1.2",)
job_server = pp.Server(ppservers=ppservers)
results = []
for i in range(4):
results.append(job_server.submit(test))
for f in results:
print f()
job_server.print_stats()
Code: Select all
-65.0
-65.0
-65.0
-65.0
Job execution statistics:
job count | % of all jobs | job time sum | time per job | job server
4 | 100.00 | 0.3083 | 0.077083 | local
Time elapsed since server creation 0.176651000977
The problem is, that when neuron is loaded the print output goes somewhere, but no neuron output appears (i.e the version number...) ..
I want to see error messages..
When I make my simulation more complex, e.g. load a cell morphology and mechanisms, something does not work, but I cannot find the mistake, because neuron does not show any error messages.
I would like to redirect the output to a file.. Is this possible with the import neuron?
Or any better ideas?
Thank you very much,
Armin