Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Consolidate cmor setups and logging #261
Consolidate cmor setups and logging #261
Changes from all commits
fdbe225
580a1a4
0a380d4
20feb79
1aea912
811d208
14c50ef
c2bf739
fe151b3
cd381e8
f8aeadd
1094638
76490c2
c087201
93238fd
d670c1f
3019e37
d268ca5
db96ce2
7e83c4f
7a1c302
2b12405
94b4e70
6fd1670
6e4bec0
28f82c5
5e60221
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It looks like you have more update than what is described in the PR. Can you list these changes too?
For example, here you update the logic to capture
num_failure
to exite3sm_to_cmip
.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.
Apparently, "failed" was coming up False, and the function returning 0, when there were indeed failures. So I augmented the condition at the bottom to ensure a non-zero return when any failure was encountered.
This is questionable. When running multiple variables in parallel, should a single variable failure be treated as a failure (non-zero return) or not?
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 think the behavior should be the same as with a serial run. Maybe what it should do is continue running even with failures, capture the failures, then output the list of failures at the end. That way
e3sm_to_cmip
doesn't end prematurely and other variables that might be successful can be CMORized still. This would make debugging more precise because of e2c ends prematurely, other variables might also fail but we won't know until later.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.
That makes sense. I'll see if I can engineer this.
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.
@TonyB9000 Can you open a separate GitHub issue for my comment above? If we decide to address it, then it should be performed in a separate PR.