Skip to content
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

test: cf checker #127

Merged
merged 13 commits into from
Sep 17, 2024
Merged

test: cf checker #127

merged 13 commits into from
Sep 17, 2024

Conversation

uriii3
Copy link
Collaborator

@uriii3 uriii3 commented Sep 5, 2024

We will add a compliant checker for netcdf files to be run within the GitHub actions to check that all the files are properly created. Related to CMT-7

@uriii3 uriii3 changed the base branch from main to copernicusmarine-toolbox-v2 September 5, 2024 12:35
@uriii3 uriii3 requested a review from renaudjester September 9, 2024 12:46
@uriii3
Copy link
Collaborator Author

uriii3 commented Sep 13, 2024

Seems like the json output isn't consistent in all the runs (sometimes max appears first and sometimes second). I've asked the library to check this, maybe it can be of help. Meanwhile, I've started the correction, so that if we don't have the warnings we don't need them to be ordered.

@renaudjester renaudjester added the WIP No need to be check label Sep 13, 2024
@uriii3 uriii3 requested a review from renaudjester September 17, 2024 14:53
Comment on lines +437 to +438
[dataset[variable].attrs["valid_min"]],
dtype=dataset[variable].encoding["dtype"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! maybe you should talk with Guille anyway about this if the valid minmax that comes from arco is different then the variable normal value

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, all of them have the same format (if int, int, if float, float) but the precision might be different... I'll ask anyway, yes!

@uriii3 uriii3 merged commit b743225 into copernicusmarine-toolbox-v2 Sep 17, 2024
2 checks passed
@uriii3 uriii3 deleted the cf_checker branch September 17, 2024 15:11
@uriii3 uriii3 changed the title Cf checker test: cf checker Sep 17, 2024
renaudjester pushed a commit that referenced this pull request Oct 28, 2024
Co-authored-by: Renaud <[email protected]>
Add a compliance checker to make sure that the netcdf output files are as expected.
renaudjester pushed a commit that referenced this pull request Oct 28, 2024
Co-authored-by: Renaud <[email protected]>
Add a compliance checker to make sure that the netcdf output files are as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP No need to be check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants