Page 1 of 1

suppress loading membrane mechanisms

Posted: Thu Feb 09, 2017 6:38 pm
by countfizix
Right now I am using command line piping to write the output of simulations to a file - is there a way to make it so the only thing neuron prints to stdout are from print or printf commands?

Right now my code returns

loading membrane mechanisms from /home/~~~~~/kcadelay/x86_64/.libs/libnrnmech.so
1
1
10.00192 -59.853269 0.00013877952 0.00036952089
...

And I have to delete the first 3 lines either by script or manually before feeding them into generic plotting software.

Re: suppress loading membrane mechanisms

Posted: Fri Feb 10, 2017 1:11 pm
by ted
The 1's are generated by hoc statements that return numerical "status" values. Sometimes those values are useful for diagnosing problems, but most often nobody wants to see them. You could try identifying the statements that are generating them, then enclose those statements inside a pair of curly brackets. Example:

Code: Select all

printf("hello\n")
produces this output

Code: Select all

hello
        6
but

Code: Select all

{ printf("hello\n") }
just says

Code: Select all

hello
I don't think there's a way to suppress reporting that mechanisms have been loaded.