-
Notifications
You must be signed in to change notification settings - Fork 24
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
Review and revise the warning messages when running the MET unit tests. #1921
Comments
I ran the following commands to generate the commands for testing:
Here are the resulting files:
They can be categorized like this:
The 6 lines are repeated 20 times, once for each of 20 ensemble members. And double that for 2 calls to gsid2orank with this input data = 240. Action: Change from "WARNING" to "DEBUG(4)", per @KathrynNewman. We suspect the gsid2orank tool is lightly used. And users can't do anything about the duplicates in the input binary file anyway.
Action: Confirmed by @michelleharrold... Leave type 3 as-is. Change types 1 and 2 from WARNING to DEBUG(3). Keep track if types 1 or 2 actually occurred and if so, print a single warning message for each type:
Clearly NHC is using (or at least was using in 2015) 999 as a missing value. Action: I confirmed this change with @KathrynNewman. Apply range check logic to the probability values (0 to 100) and anything out of range results in a DEBUG(4) log message instead of a WARNING.
Here's the grep command to ignore them all:
|
I reran the same tests and captured the log output before/after making many of these changes. Here is the resulting "report.log" file showing the old number of warnings followed by the new number for each warning type. See warnings.tar.gz for details:
|
Describe the Task
Recent changes have introduced many new warning messages to the output of MET. This task is to run all of the commands for the unit tests, save the output to a log file, and count up the warning messages. For each warning message, decide whether or not it's useful and should remain.
If not, modify the code to either remove it entirely or change it to a high level debug message instead.
Time Estimate
1 day.
Sub-Issues
Consider breaking the task down into sub-issues.
No sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Task Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: