-
Notifications
You must be signed in to change notification settings - Fork 32
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
Check if experiment_id attribute is present in current dataset when being processed by PrePARE #644
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.
@mauzey1 thanks for catching this - @matthew-mizielinski are there any other obvious tweaks you suggest?
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.
Just a quick note, this fix doesn't appear to resolve the whole issue raised in #643 entirely (at least it didn't do it for me), as there are other problems with the netCDF file, which cmor to fail because of weird characters appearing in the log file. The quick fix, as commented by @matthew.mizielinski, is to provide encoding parameter to the
|
Okay, I have added the suggested changes to PrePARE. I would still like to keep finding bugs in CMOR_CV code similar to the ones I have found, but this will at least reduce the chances of PrePARE crashing when processing erroneous NetCDF files. |
@mauzey1 @piotr-florek-mohc (and @matthew-mizielinski) thanks for this tweak! |
The MacOS Python 3.9 check failed due to a server error with conda. The last change committed would not have affected the tests anyway. I will merge this now. |
Fixes #643