suppress loading membrane mechanisms

Anything that doesn't fit elsewhere.
Post Reply
countfizix
Posts: 1
Joined: Wed Feb 08, 2017 6:22 pm

suppress loading membrane mechanisms

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

Re: suppress loading membrane mechanisms

Post 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.
Post Reply