-
Notifications
You must be signed in to change notification settings - Fork 312
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
Refactoring run_neon for PLUMBER2 part1 #2315
Conversation
After talking with @ekluzek , we plan to bring in this PR with a few minor modifications that I'll make shortly, and then create a new PR for building a generic base class, an abstract TowerSite class, and then a neon class with neon-specific behavior. A third PR will then create the PLUMBER specific class and any necessary changes to the base/tower-site classes. |
This PR is now ready for review. Requesting review from either Erik or Sam, but it's fine to change that, too, if needed. |
Thanks, @TeaganKing. |
@TeaganKing I will be happy to go over the code with you in a meeting. Pls feel free to send me an invite. |
Thanks @slevis-lmwg. It seems like @TeaganKing is planning on a series of PRs to enable Plumber runs. hopefully this PR can come in pretty quickly (maybe the dev_branch or with other BFB PRs)? Once this PR is approved, can you also give some thought into how we can bring this to main dev efficiently? |
FYI @wwieder and @slevis-lmwg , I'm also planning to continue working off of this branch on the next PR. It'd be ideal if it comes in quickly, but not a roadblock to continued work on this project if it doesn't. |
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.
@TeaganKing and I went over this last week. The one change that I'm asking for right now is that there be added some extra error checking into the new arg_parse.py, and some unit tests for it. Basic things like files entered are checked for existence, check that a directory actually is a directory -- that sort of thing.
Also @TeaganKing you should change the name of the arg_parse.py, to include something about run_neon in the name. There could be arg_parse modules for lots of different tools, so they will need to be distinguished from each other.
The steps after what has currently been done for making base classes will be done in a part2 PR.
Hi @ekluzek , thanks for the suggestions. I renamed the RE additional tests, at the bottom of
Within the Additionally, we have unit tests provided in |
Future PR expected changes have been documented in #1487 |
Following up on a conversation with @slevis-lmwg , I just ran I also want to note there are many pylint errors not copied here; these are unrelated to this PR.
|
@TeaganKing I went to my copy of "vanilla" ctsm5.1.dev165 and ran |
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.
@TeaganKing and I went over this PR, and it seems ready to me. My requests before approving were:
- Move TODOs to a new issue.
- Ensure that python unit and system tests pass.
@slevis-lmwg thanks for doing that test on your side, too. Is there something in particular that I need to do to access |
For the tests to work for me, I had to do the following:
If you have already done these things, I do not know what else to suggest... |
@TeaganKing in order to get the ctsm_pylib installed, you have to run the py_env_create script at the top level of CTSM. So you might need to do that before the conda activate in Sam's instructions above. |
Thank you @slevis-lmwg and @ekluzek for these suggestions. I had previously activated |
@TeaganKing in the meanwhile could you also test whether you get the errors when you run vanilla dev165 (i.e. without your mods)? |
@TeaganKing I found a moment to try what you suggested and it worked for me. Thank you for suggesting this test. So I think I can proceed with the merge of this PR. |
Thanks @slevis-lmwg ! I guess you got to it before I did, and I'm glad that worked! |
Description of changes
Additional (not-yet-ordered) expected changes (for future PR):
Contributors other than yourself, if any:
@ekluzek @adrifoster
Some additional resources
https://docs.google.com/document/d/19QAvUSJY0QJdFF5LrOFhU0JVhfT3QwvFQaf8IiPtXxU/edit#heading=h.cyie9ucyj2pr
https://docs.google.com/document/d/1i57JZgu6vWtdvr8rNMEnrtNIMIl8hB4jUeE4UvxNh38/edit
CTSM Issues Fixed (include github issue #):
Are answers expected to change (and if so in what way)? No. This will work towards supporting additional tower sites.
Note, this is a WIP PR. I changed branches from the original PR-- #2259