Skip to content
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

Update main from feature/capgen 11/09/2021 (stricter checking of units in CCPP metadata), update CODEOWNERS - requires Python 3.6 or newer #415

Merged
merged 20 commits into from
Nov 23, 2021

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Nov 10, 2021

Description

Update main from feature/capgen as of 11/09/2021. The feature/capgen branch contains major refactoring of the capgen.py scripts, including the metadata used by the current ccpp_prebuild.py in the UFS.

Except for a stricter checking of units in the CCPP metadata, these updates have no effect on the UFS or the parameterizations in the NCAR ccpp-physics main repository.

Note. The framework updates contain formatted string statements that require Python 3.6 or newer.

User interface changes?: No

Fixes #416

Last-minute change w/o effect on the code whatsoever: add @mkavulich to CODEOWNERS

Associated PRs

#415
NCAR/ccpp-physics#775
NOAA-EMC/fv3atm#422
ufs-community/ufs-weather-model#907

Testing

See ufs-community/ufs-weather-model#907

climbfuji and others added 19 commits August 18, 2021 13:23
…parse_tools/parse_checkers.py for merging to feature/capgen
…_main_20210818

Update feature/capgen from main 2021/08.18
Convert framework options to DDT with methods (runtime environment).
Convert shebangs to python3
Change ccpp_error_flag to ccpp_error_code
Add polymorphic variable property
Remove optional variable property
Introduct FortranVar to allow Fortran to have undocumented optional
     variables
Cleanup ccpp_error_code usage
Fix hang in datatable write plus catch more bad units
Split var_props.py from metavar.py to allow independent development
Added VarCompatObject to hold compatibility and transform information
     about a pair of Var objects. This object looks for compatible
     differences in units, kind, or dimensions.
Created unit tests for variable compatibility.
Move PrettyElementTree to xml_tools
Refactor ccpp_suite to separate out SuiteObjects
Created <root>/test/run_tests.sh to run all capgen tests.
Co-authored-by: goldy <github@goldy.online>
…re_capgen_20211102

Fix CI test failures in feature/capgen, address pylint warnings
…pgen_20211105

Merge main into feature capgen 2021/11/05
Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@climbfuji climbfuji changed the title Update main from feature/capgen 11/09/2021 (stricter checking of units in CCPP metadata) Update main from feature/capgen 11/09/2021 (stricter checking of units in CCPP metadata), update CODEOWNERS Nov 18, 2021
@climbfuji climbfuji requested a review from mkavulich November 18, 2021 23:09
@climbfuji
Copy link
Collaborator Author

@grantfirl for some reason I can't add you as reviewer to this PR. Maybe you didn't exist or were caught in a space-time bubble while transferring from NCAR to NOAA.

@climbfuji climbfuji changed the title Update main from feature/capgen 11/09/2021 (stricter checking of units in CCPP metadata), update CODEOWNERS Update main from feature/capgen 11/09/2021 (stricter checking of units in CCPP metadata), update CODEOWNERS - requires Python 3.6 or newer Nov 23, 2021
@climbfuji
Copy link
Collaborator Author

Regression testing complete, will merge now.

@climbfuji climbfuji merged commit 4cdbddf into NCAR:main Nov 23, 2021
DusanJovic-NOAA pushed a commit to ufs-community/ufs-weather-model that referenced this pull request Nov 24, 2021
…CCPP metadata in fv3atm and ccpp-physics, use Python 3.6+ (#907)

With the metadata parser update in NCAR/ccpp-framework#415, a stricter checking of units will be enforced. This includes the replacement of "convenience units" such as log(Pa) with 1. Corresponding changes are made in ccpp-physics and fv3atm.

The ccpp-framework update requires Python 3.6 or newer - load Python 3.7.9 modules on Cheyenne, all other platforms are already using 3.6 or newer.
@climbfuji climbfuji deleted the update_main_from_feature_capgen branch June 27, 2022 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update main from feature/capgen following the refactoring and implementation of strict metadata units checking
2 participants