-
Notifications
You must be signed in to change notification settings - Fork 9
suppress warnings when verbose==0 #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Often, events are saved one-by-one during acquisition. This produces lots of warnings because all the events before the one current one are empty in the logFile. One would expect that these warnings can be suppressed by setting cfg.verbose to 0. Simply adding this condition to the saveEventsFile does the job.
Codecov Report
@@ Coverage Diff @@
## dev #150 +/- ##
=======================================
Coverage 79.90% 79.90%
=======================================
Files 30 30
Lines 652 652
=======================================
Hits 521 521
Misses 131 131
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Hey Tomas, not sure I understand the situation you are describing. Do you have an example? Your edits regard the extra columns so I guess that sometimes have not any entry for the extra column and so you receive a warning. Is it correct? If so, from your edits you will not receive any warning and that 'row' will not be printed on the command window but it will be printed in the tsv file. Is it correct? |
Hi Marco, My edits suppress this when you select This may perhaps be a nice thing to do, considering we have 3 levels of verbose. In other words |
|
Thanks! I will have a look. |
Remi-Gau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Often, events are saved one-by-one during acquisition. This produces
lots of warnings because all the events before the one current one
are empty in the logFile. One would expect that these warnings can be
suppressed by setting cfg.verbose to 0. Simply adding this condition to
the saveEventsFile does the job.