-
Notifications
You must be signed in to change notification settings - Fork 23
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
UW-608 filter_topo driver #510
UW-608 filter_topo driver #510
Conversation
commit d5d9efa Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 17:44:35 2024 +0000 Update test_driver.py to test config file case commit 4998205 Merge: 5b9cd8c dbe1224 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 14:51:36 2024 +0000 Merge branch 'main' into uw-607-orog-gsl-driver commit 5b9cd8c Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 14:18:46 2024 +0000 Update doc commit 6c289f2 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 13:54:07 2024 +0000 Fix section headers in test_schemas.py commit 129d748 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 04:17:56 2024 +0000 Update make_hgrid unit test commit 7ce5507 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 03:59:13 2024 +0000 Fix docs typo commit 38a6d92 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 01:42:27 2024 +0000 Work on docs commit b2b9818 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 01:25:19 2024 +0000 Add orog_gsl UW YAML doc commit ddb0ad1 Author: Paul Madden <paul.madden@noaa.gov> Date: Thu Jun 13 01:19:12 2024 +0000 WIP commit d4062c5 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 21:43:42 2024 +0000 Work on docs commit 564f9f6 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 21:38:24 2024 +0000 Unit tests @ 100% commit 72cd854 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 21:35:21 2024 +0000 Work on unit tests commit 47e22ea Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:49:29 2024 +0000 Use in-memory configs in driver tests to reduce IO commit c9e1229 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:33:33 2024 +0000 Use in-memory configs in driver tests to reduce IO commit 918f1fd Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:12:59 2024 +0000 Work on unit tests commit 308bdc3 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:05:53 2024 +0000 Add API unit tests commit d424b78 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:05:45 2024 +0000 Add module envcmds to prototype YAML config commit 3873d36 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 20:02:13 2024 +0000 Add schema tests commit b2ef311 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 19:41:32 2024 +0000 Delinting commit da4c4ac Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 19:34:36 2024 +0000 WIP commit 1dc8206 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 19:25:35 2024 +0000 Reorder required in shave.jsonschema commit 7650959 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 19:23:40 2024 +0000 Add orog-gsl.jsonschema commit cf6db0c Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 19:15:17 2024 +0000 Work on driver commit 2867918 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 16:45:09 2024 +0000 Add orog_gsl.py commit 17a0eaf Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 16:44:57 2024 +0000 Simplify Driver._write_runscript() signature and callers commit 3758ed1 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 16:38:13 2024 +0000 Tidy commit 5f6b951 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 16:36:57 2024 +0000 Update CLI and API commit 2568762 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 16:35:55 2024 +0000 Update prototype YAML config commit 9773df5 Author: Paul Madden <paul.madden@noaa.gov> Date: Wed Jun 12 15:49:58 2024 +0000 Add prototype orog_gsl.yaml
Co-authored-by: Emily Carpenter <137525341+elcarpenterNOAA@users.noreply.github.com>
…wtools into uw-608-filter-topo-driver
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.
Solid driver, great refactor - thanks!
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.
This looks great.
I have a future question inspired by this test clean up work. Can we have a test that fails if we haven't tested all the methods on a driver? I was thinking something like checking that the set(attributes of Driver subclass - attributes of Driver class)
show up in the tests in the driver test file.
Co-authored-by: Christina Holt <56881914+christinaholtNOAA@users.noreply.github.com>
Co-authored-by: Christina Holt <56881914+christinaholtNOAA@users.noreply.github.com>
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.
LGTM.
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.
Looks good for me. Thanks for making all the additional updates.
Synopsis
A driver for the
filter_topo
utility. A sample run onhera
:/home/Paul.Madden/git/uwtools/run.filter_topo
, configured by/home/Paul.Madden/git/uwtools/filter_topo.yaml
.I also noticed some repeated patterns in the drivers and their unit tests and took the opportunity to do some refactoring:
runscript()
method, so I factored that out to theDriver
base class and let them inherit it. Several drivers override this default with a custom method.Driver
base class, which have their own unit tests. So I DRYed out those tests and replaced them with a test that asserts that certain methods on a derived class are, in fact, identical to methods in the base class -- which we know work correctly because they have their own tests.I also tidied up the docs in a few places.
Type
Impact
Checklist