-
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
Checking out table versions (e.g. cmip6-cmor-tables) alongside CMOR install #676
Comments
Conversation with @sashakames noted that in order for PrePARE to currently validate data, we need to match the It would be great if CMOR checked out the appropriate version when it first encounters this We can obviously roll this forward in PCMDI/mip-cmor-tables#3 |
We might assume that the tables are backward compatible (with only new variables added, but not changes to old variables). Any info. on the single issue raised by PrePARE? |
@sashakames it seems we've solved the seats issue, so tagging you here - which will likely require @mauzey1 at some stage |
Here's the issue raised if that's what you are after:
|
@durack1 So we want PrePARE to warn users that the data_specs_version of a file doesn't match the one in the tables being used by PrePARE? Should that just be a warning, or an error? |
@mauzey1 that would be a nice addition, as a warning. Thinking about this, ideally, it would be great to always check against the latest version of the tables, so that at no point in time do we allow issues that are known (and fixed in the latest tables) to be published. The checkout of the latest table versions by PrePARE/CMOR install/runtime was the original focus of this issue. |
thanks, @sashakames for the error message. "Your table" has a typo ("particle" instead of "particles"). |
@taylor13 just circling around on this. The issue was that the tables that the original data was written with included the error, and so they had created CMOR and cmip6-cmor-table validated data. The issue was when PrePARE was used to validate the data during publishing, and an updated and corrected version of the tables was used - so that was why I was suggesting a warning rather than an error and exit |
Got it. You suggest we not burden users with fixing a problem that was only recently discovered (between the time they wrote the data with CMOR and the time it was checked by PrePARE. There might be at least 2 cases when we might not want to be that lenient:
All that being said, I wouldn't strongly object to making this a warning (rather than an error) since it doesn't involve the DRS (i.e., the attributes that determine unique file names and directory structures). |
My thought on the warning message would be that PrePARE would include a check of the table version against the global attribute found in the file. If there is a mismatch then warn the user in addition to any errors encountered as a result of the mismatch. I agree that PrePARE shouldn't pass data where there are errors as there is no distinction between a minor error like a typo in the above example versus something where the cf name was completely garbled. Additionally, we had the notion of a minimum data_spec_version. While this is something that would be helpful to have in the publisher (on the client side) ultimately it is better to enforce server side. I'll raise this when requirements for publication services are discussed. Following the warning the users may have the opportunity to downgrade their table version (provided it is still valid, meets the minimum) and publish. |
It would be useful to consider this alongside the future CMOR4 release - as we are standardizing on the mip-cmor-tables across projects, certainly makes sense to "ship" CMOR with the inputs it requires to run |
No description provided.
The text was updated successfully, but these errors were encountered: