Closed georgemccabe closed 3 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
metplus/wrappers/command_builder.py | 1 | 94.31% | ||
metplus/util/config_metplus.py | 4 | 87.83% | ||
metplus/wrappers/ascii2nc_wrapper.py | 5 | 89.06% | ||
<!-- | Total: | 10 | --> |
Totals | |
---|---|
Change from base Build 8269428481: | -0.04% |
Covered Lines: | 8599 |
Relevant Lines: | 9455 |
Testing summary so far:
POINT_STAT_UGRID_DATASET=lfric2
POINT_STAT_MAX_DISTANCE_KM=30
POINT_STAT_UGRID_COORDINATES_FILE=/home/dadriaan/projects/ugrid/data/fcst/lfric/20240112_ftp/lfric_2021-07-28_00.00.00.nc
POINT_STAT_UGRID_CONFIG_FILE=/home/dadriaan/projects/ugrid/data/met_base/config/UGridConfig_lfric2
ERROR :
ERROR : UGridFile::set_dataset() The UGrid dataset "lfric2" is not supported. Please add "/d1/personal/hsoh/git/features/feature_2746_ugrid_nearest_n_points/MET/share/met/config/UGridConfig_lfric2".
ERROR :
POINT_STAT_UGRID_DATASET=
POINT_STAT_MAX_DISTANCE_KM=30
POINT_STAT_UGRID_COORDINATES_FILE=/home/dadriaan/projects/ugrid/data/fcst/lfric/20240112_ftp/lfric_2021-07-28_00.00.00.nc
POINT_STAT_UGRID_CONFIG_FILE=/home/dadriaan/projects/ugrid/data/met_base/config/UGridConfig_lfric2
ERROR :
ERROR : process_command_line() -> ugrid_dataset is not defined at the configuration file.
ERROR :
Reassigning this PR to the beta5 development cycle and convert it to draft until work can resume on it.
@DanielAdriaansen update contributors guide to say the word squash
in this section: https://metplus.readthedocs.io/en/develop/Contributors_Guide/add_use_case.html#merge-the-pull-request-and-ensure-that-all-tests-pass.
@georgemccabe Could we change:
POINT_STAT_MAX_DISTANCE_KM
to POINT_STAT_UGRID_MAX_DIST_KM
GRID_STAT_MAX_DISTANCE_KM
to GRID_STAT_UGRID_MAX_DIST_KM
If you feel we should spell out DISTANCE
, I don't have a problem with that just trying to keep them short. But I do think we should include UGRID
in the conf item name.
@DanielAdriaansen, I name the METplus config variables after the name of the corresponding MET config variable and tool so users can infer the names of the METplus config variables. It is easy to support both POINT_STAT_MAX_DISTANCE_KM
and POINT_STAT_MAX_DIST_KM
, but the variable name that matches the MET variable would take precedence if both are set.
@DanielAdriaansen, I name the METplus config variables after the name of the corresponding MET config variable and tool so users can infer the names of the METplus config variables. It is easy to support both
POINT_STAT_MAX_DISTANCE_KM
andPOINT_STAT_MAX_DIST_KM
, but the variable name that matches the MET variable would take precedence if both are set.
OK, and big 🤦 on my part, you already have UGRID
in the conf items, despite me requesting incorrectly above. Thanks for getting it right even though I had it wrong! I think just using DISTANCE
is good, no need to support DIST
. Thanks!
Also moved the seeps variable up so that it matches the order of the default config files in the MET repo
Pull Request Testing
Added unit tests
Test that new settings work as expected in an example use case.
[X] Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
[X] Do these changes include sufficient testing updates? [Yes]
[X] Will this PR result in changes to the test suite? [No]
[X] Please complete this pull request review by 3/25/2024.
Pull Request Checklist
See the METplus Workflow for details.