dtcenter / MET

Model Evaluation Tools
https://dtcenter.org/community-code/model-evaluation-tools-met
Apache License 2.0
77 stars 24 forks source link

Feature #2833 pcp_combine_missing #2886

Closed JohnHalleyGotway closed 4 months ago

JohnHalleyGotway commented 4 months ago

Expected Differences

Pull Request Testing

Modified 1 existing pcp_combine_derive_MULTIPLE_FIELDS test in unit_pcp_combine.xml to demonstrate running -derive with missing inputs files at the beginning, middle, and end of the input file list. The first 2 do not trigger warnings because the MISSING keyword is used. The 3rd does, because MISSING is not present in the path.

Pull Request Checklist

See the METplus Workflow for details.

JohnHalleyGotway commented 4 months ago

Converted PR to draft while I fix the tests and SonarQube findings.

JohnHalleyGotway commented 4 months ago

@georgemccabe I just reopened this PR after fixing the testing and SonarQube issues.

Note that 14 SonarQube code smells remain for this PR, but these are ones I do not plan to fix. They're not easy, and I confirmed with Julie and Michelle that these don't have a high enough priority level to be worked on right now.

I do expect differences in the output to be flagged, but only based on the addition of 1 new file.

JohnHalleyGotway commented 4 months ago

Phew, OK, this testing workflow run now completes all the tests and only flags one new output file, as expected:

ERROR: folder /data/output/met_test_truth missing 1 files
    pcp_combine/nam_2012040900_F087_APCP12.nc 

The updated logic in parse_file_list.cc is working as expected. This PR is ready to be re-reviewed.