-
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
Expose NetCDF quantize and zstandard functions #751
Conversation
…d set default zstandard level to 3
@piotr-florek-mohc is there any chance you could pull the 3.9 release to test across the MOHC demo cases? |
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.
I presume that the test suite will be run before merging, right? |
@durack1 The nightly build will have the changes from this PR when it is merged into main. I'm currently encountering an issue with the singleton test. It seems that adding the values for quantize and zstandard to the struct cmor_var_ are causing some kind of alignment error. I'll label this PR as a draft until it is fixed. |
@wachsylon any chance you could take the CMOR 3.9.0 nightly for a test drive and provide any feedback before we get this released - hopefully this PR will be merged soon, enabling a nightly with the new functionality to test drive |
I'm currently having issues with understanding why the macOS builds (x86 and arm64) are breaking on GitHub Actions. I was able to get macOS arm64 builds working in a CircleCI pipeline running macOS 14.3.1 with xcode 15.4.0 with this branch's changes. I was also able to get the builds working on my x86 Macbook running macOS 14.6.1 with xcode 15.4.0. GitHub Action's macOS arm64 runner uses macOS 14.6.1 with xcode 15.4.0. I don't know why I'm getting errors since this configuration should be similar to the ones where I got working builds. The specific error being that the values in the cmor_var_t struct seem to be misaligned by the addition of the variables Lines 438 to 501 in 1e32b83
I detected the errors in test_singletons.c where Lines 45 to 54 in 1e32b83
I don't know what causes this issue nor why it only occurs in the GitHub Action builds and not anywhere else. |
I have found the problem. It turned out that the build in the PR was using a branch (main?) that was different from the source branch that contained the changes. This caused the misaligned values when building tests using the source branch's headers while using the PR build's library. I have fixed it by making the PR build use the source branch. |
Resolves #725
NetCDF variable quantization and Zstandard compression can now be enabled in CMOR using the functions
cmor_set_quantize
andcmor_set_zstandard
.Zstandard compression will only be applied to variables when deflate compression, which is used by default, is disabled. This is done to avoid errors caused by having two compression methods being applied.