-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feature #2283 time looping consolidation #2311
Conversation
…contain time and file information to a list
…d cluttering log output, make wrapper a LoopTimes wrapper to remove run_at_time function and reduce redundancy, log if example file path is found to make wrapper more useful
…edundant run_at_time functions in each wrapper, ci-run-all-diff
…eating unit tests
…eating unit tests
…TD) and ReformatGridded (PCPCombine, RegridDataPlane) wrappers to be LoopTimes wrappers so they use the same run_at_time method
…remove command check that is done inside build function
…, TCStat, and TCRMW to be RuntimeFreq wrappers -- testing if any issues arise because there may be an assumption that init==valid for these tools, but RuntimeFreq RUN_ONCE_PER_INIT_OR_VALID uses wildcard for forecast lead and does not compute the opposite of init/valid, ci-run-all-diff
…time_once to compute missing time values, ci-run-all-diff
…n if init/valid are not computed
…pe is FCST or OBS
…ess, update unit tests to match changes to calls to wrapper and naming of file list files
…ecks for lead not wildcard (relativedelta comparison operator to string '*' always reports False)
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.
I approve of these changes.
I see differences flagged in 2 of the tests in this GHA run.
- In
marine_and_cryosphere
, the file list is renamed from
user_script_files_input0_init_ALL_valid_ALL_lead_ALL_truth.txt
touser_script_files_input0_init_ALL_valid_20211028000000_lead_ALL_output.txt
but the contents are the same.
- For
medium_range
, the file201908/alq2019083000.dorian_truth.tcst
has moved up one directory toalq2019083000.dorian_output.tcst
but the contents are the same. - All other GHA tests passed.
I see 60 modified files. Some comments:
- In
docs/Contributors_Guide/basic_components.rst
would be cool to add a class hierarchy diagram to illustrate but its definitely not required. - I read through the updates to the documentation for clarity and typos, and it looks great.
- I browsed the other code modifications and note the removal of run_at_time functions from many of the wrappers, which is great to streamline. And in particular a large overhaul to the MTD wrapper.
I can't really speak to the accuracy of the code changes but they do look consistent with the changes you described when we met the other day. There certainly are a lot of changes here and I'm leaning heavily on the automated GHA tests to validate that they are working as expected.
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.
I approve of these changes.
Co-authored-by: John Halley Gotway <[email protected]>
These changes were made to make it easier to make the changes required for #2283. Without these changes, code changes are needed in many places to satisfy #2283.
Change Summary
NOTE: Additional work could be done to make the input file logic consistent.
MTD wrapper provides a good start that can be enhanced to work for other wrappers,
including support for optional inputs, processing all fields (vars) in a single run, etc.
SeriesAnalysis, GridDiag, GridDiag, and UserScript wrappers could be modified to
not call subset_input_files function and instead gather only files needed for each run.
Pull Request Testing
Review Contributor's Guide changes, then review code changes
Ensure only failures in automated tests are due to differences in file names that are reasonable
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
Do these changes include sufficient testing updates? [Yes]
Will this PR result in changes to the test suite? [Yes]
A few intermediate file names will change. develop-ref will need to be updated after this PR is merged.
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes