Skip to content

Add check on control file and graceful exit,#196

Merged
CoryMartin-NOAA merged 3 commits intodevelopfrom
bugfix/exit-191
Jul 12, 2024
Merged

Add check on control file and graceful exit,#196
CoryMartin-NOAA merged 3 commits intodevelopfrom
bugfix/exit-191

Conversation

@EdwardSafford-NOAA
Copy link
Contributor

Modity mon_data_space.py adding a check on the control file and graceful exit if not found. Without this exit the entire plot job terminates. With this exit only the affected thread halts (with error message), allowing all other plots to proceed.

This has been tested on wcoss2 by removing some control files from the test data set. Missing control files are reported as warnings and all plots with valid control files run to completion.

Dependencies

None

Resolves #191 .

Add control file check and graceful exit.
@EdwardSafford-NOAA
Copy link
Contributor Author

For the CI test failure is it a consensus that we need to bump the emcpy version (now at 9b6756341e)? And if so to which version?

Copy link
Contributor

@kevindougherty-noaa kevindougherty-noaa left a 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.

@CoryMartin-NOAA
Copy link
Collaborator

For the CI test failure is it a consensus that we need to bump the emcpy version (now at 9b6756341e)? And if so to which version?

@kevindougherty-noaa do you know the answer to this?

@kevindougherty-noaa
Copy link
Contributor

@EdwardSafford-NOAA

For the CI test failure is it a consensus that we need to bump the emcpy version (now at 9b6756341e)? And if so to which version?

Good question. I will have new PR for EMCPy next week with some changes needed for the documentation plus some minor changes.

Merge branch 'develop' into bugfix/exit-191
@EdwardSafford-NOAA
Copy link
Contributor Author

@CoryMartin-NOAA CI tests have passed so this is good to go now.

@CoryMartin-NOAA CoryMartin-NOAA merged commit ab1b07c into develop Jul 12, 2024
@CoryMartin-NOAA CoryMartin-NOAA deleted the bugfix/exit-191 branch July 12, 2024 13:21
CoryMartin-NOAA added a commit that referenced this pull request Jul 12, 2024
#198)

Add zeroed data if a station data file is missing to ensure continued
execution.

Resolves #197 

## Dependencies
Not a huge deal but I started this branch from my fix for #196 so that
should be merged before this change.

---------

Co-authored-by: Cory Martin <cory.r.martin@noaa.gov>
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.

mon_data_space.py should exit gracefully when requested control file is not found

3 participants