-
Notifications
You must be signed in to change notification settings - Fork 180
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
Add missing file safeguard for IMS prep in snow analysis tasks #3329
Add missing file safeguard for IMS prep in snow analysis tasks #3329
Conversation
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.
Suggest minor changes
Co-authored-by: Jiarui Dong <Jiarui.Dong@noaa.gov>
Co-authored-by: Jiarui Dong <Jiarui.Dong@noaa.gov>
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 to me. Thanks for your efforts.
@@ -178,7 +178,7 @@ def prepare_IMS(self) -> None: | |||
|
|||
asc_file = os.path.join(localconf.COMIN_OBS, f"{localconf.OPREFIX}imssnow96.asc") | |||
if not os.path.isfile(asc_file): | |||
logger.exception(f"Obs files are missing. Will not execute CALCFIMSEXE") | |||
logger.warn(f"WARNING: Obs files are missing. Will not execute CALCFIMSEXE") |
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.
logger.warn(f"WARNING: Obs files are missing. Will not execute CALCFIMSEXE") | |
logger.warning(f"WARNING: Obs files {asc_file} is missing. Will not execute CALCFIMSEXE") |
same below
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.
Description
This PR adds a safeguard to only continue running the IMS prep step in the snow analysis tasks if the necessary obs file is present.
Resolves #3328
Type of change
Change characteristics
How has this been tested?
2.5 cycle experiment on Hera
Checklist