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.
suppress loading membrane mechanisms
-
- Site Admin
- Posts: 6386
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: suppress loading membrane mechanisms
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:produces this outputbutjust says
I don't think there's a way to suppress reporting that mechanisms have been loaded.
Code: Select all
printf("hello\n")
Code: Select all
hello
6
Code: Select all
{ printf("hello\n") }
Code: Select all
hello