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

experiment bug fix #2435

Merged
merged 9 commits into from
Apr 16, 2024
Merged

Conversation

TeaganKing
Copy link
Contributor

@TeaganKing TeaganKing commented Mar 25, 2024

This PR involves some changes to the arguments in run_case in order to address #2433

Fixes #2433

@TeaganKing TeaganKing self-assigned this Mar 25, 2024
@TeaganKing TeaganKing mentioned this pull request Apr 15, 2024
1 task
@wwieder
Copy link
Contributor

wwieder commented Apr 15, 2024

Assigning this to @slevis-lmwg to integrate into b4b-dev after @ekluzek is able to approve the PR.

@wwieder
Copy link
Contributor

wwieder commented Apr 15, 2024

I should add that I was able to create --transient cases with code mods on this branch.

@wwieder
Copy link
Contributor

wwieder commented Apr 15, 2024

@TeaganKing I also see this is marked as a WIP. Was there more you were planning to add to this PR?

Copy link
Collaborator

@ekluzek ekluzek left a comment

Choose a reason for hiding this comment

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

Marking as approved since it's small and I see no problems with the changes.

This is still marked as a draft, is this ready to come in? Or is there more going on here?

I wasn't sure about the removal of the default values from run_case. Can you elaborate more on why that's being done?

python/ctsm/site_and_regional/neon_site.py Show resolved Hide resolved
python/ctsm/site_and_regional/neon_site.py Show resolved Hide resolved
python/ctsm/site_and_regional/tower_site.py Show resolved Hide resolved
@TeaganKing
Copy link
Contributor Author

@wwieder I was planning to add fixes for other issues in the same PR, but I think maybe we should keep this as simple as possible since there are lots of moving pieces right now. I wasn't planning to add anything else specifically for the 'experiment' functionality.

@TeaganKing TeaganKing marked this pull request as ready for review April 15, 2024 22:23
Merging b4b-neon instead of b4b-dev because I expect to push b4b-neon to
b4b-dev soon
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Apr 15, 2024

Testing after merging b4b-neon to this branch (thus, effectively, having merged the latest b4b-dev):
OK: ./run_ctsm_py_tests -u
FAIL: ./run_ctsm_py_tests -s
PASS: ./run_sys_tests -s clm_pymods -c ctsm5.1.dev176 --skip-generate

@TeaganKing two requests:

  1. Could you add me as collaborator so that I can push to this PR? You would click on Settings just to the right of middle-top of this page. Then click on Collaborators and follow the instructions for adding me (@slevis-lmwg).
  2. The python system testing triggers this error:
ERROR: test_one_site (test.test_sys_run_neon.TestSysRunNeon)
This test specifies a site to run
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/glade/work/slevis/git/latest_master/python/ctsm/test/test_sys_run_neon.py", line 57, in test_one_site
    main("")
  File "/glade/work/slevis/git/latest_master/python/ctsm/site_and_regional/run_neon.py", line 242, in main
    experiment=experiment,
  File "/glade/work/slevis/git/latest_master/python/ctsm/site_and_regional/neon_site.py", line 113, in run_case
    experiment,
  File "/glade/work/slevis/git/latest_master/python/ctsm/site_and_regional/tower_site.py", line 305, in run_case
    self.name = self.name + "." + experiment
TypeError: can only concatenate str (not "NoneType") to str

I think I should send this back to you to fix, unless @wwieder would rather I did the rest of the debugging on this.

@TeaganKing
Copy link
Contributor Author

Thanks for catching that, @slevis-lmwg . I added you to the repository. I'm not going to be able to fix the system test error tonight, but I think I see what's going on and should have time to fix it tomorrow.

@slevis-lmwg
Copy link
Contributor

Thank you, @TeaganKing

@wwieder
Copy link
Contributor

wwieder commented Apr 16, 2024

@TeaganKing is this something that's straight forward for you to address?

Sorry, I wrote this without refreshing my browser looking upstream on the conversation. Thanks @TeaganKing

@TeaganKing
Copy link
Contributor Author

Hi @slevis-lmwg, I think I fixed the issue.

@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Apr 16, 2024

Testing this morning passed:
PASS: make black
PASS: make lint
OK: ./run_ctsm_py_tests -u
OK: ./run_ctsm_py_tests -s
PASS: ./run_sys_tests -s clm_pymods -c ctsm5.1.dev176 --skip-generate

@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Apr 16, 2024

For my own sanity, I'm also running
./run_sys_tests -s aux_clm -c ctsm5.1.dev176 --skip-generate
I didn't do so for #2472 before merging it to b4b-dev, so I'm doing it now and hoping for the best...

derecho OK
izumi OK with one test still PENDing, so I will proceed with the merge at this point.

@slevis-lmwg slevis-lmwg merged commit 074b4df into ESCOMP:b4b-dev Apr 16, 2024
2 checks passed
@slevis-lmwg slevis-lmwg deleted the neon_experiment_fix branch April 16, 2024 21:21
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.

Issues with run_neon with the --experiment flag starting in ctsm5.1.dev172
4 participants