CoreNeuron verbose output

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
sean
Posts: 2
Joined: Wed Oct 04, 2023 7:54 am

CoreNeuron verbose output

Post 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.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: CoreNeuron verbose output

Post 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
sean
Posts: 2
Joined: Wed Oct 04, 2023 7:54 am

Re: CoreNeuron verbose output

Post by sean »

Ok, thanks that works.
I had tried h.verbose = False and apparently stopped thinking after that.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: CoreNeuron verbose output

Post by ted »

Actually, h.verbose could be an interesting feature.

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