Page 1 of 1

CoreNeuron verbose output

Posted: Fri Oct 20, 2023 8:38 am
by sean
Hi, new forum member here.

I am running neuron version 8.2.2 on Ubuntu, installed using pip. When I turn on the coreneuron feature and train my models using the ParallelContext pc.psolve(h.tstop) method it prints a lot of verbose output to the screen, including some parameters, memory usage, a progress bar, etc.

My question is, is there some way to suppress this extra output?
I've tried redirecting pythons stdout and stderr to /dev/null (https://stackoverflow.com/questions/679 ... out-stderr) during the call to pc.psolve() but that didn't seem to work.


Thanks in advance for any help you can provide.

Re: CoreNeuron verbose output

Posted: Sat Oct 21, 2023 10:56 pm
by ted
Try inserting
coreneuron.verbose = 0
after
coreneuron.enable = True

You might glean some other useful stuff from
https://github.com/neuronsimulator/nrn/ ... _direct.py

Re: CoreNeuron verbose output

Posted: Mon Oct 23, 2023 3:49 am
by sean
Ok, thanks that works.
I had tried h.verbose = False and apparently stopped thinking after that.

Re: CoreNeuron verbose output

Posted: Mon Oct 23, 2023 11:44 am
by ted
Actually, h.verbose could be an interesting feature.

Just out of curiosity: what performance boost are you getting?