-
Notifications
You must be signed in to change notification settings - Fork 300
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
Repair CF writer tests failing with libnetcdf >= 4.9.0 #2412
Conversation
I assume that once the xarray issue is fixed this will start failing? Can we check the netcdf version and the xarray version to have better control of this? |
I guess they would first issue a deprecation warning before dropping support for the |
Could we then assume that this fix will be included in the next xarray release? I do see there is a PR started here: pydata/xarray#7551 If we assume the next xarray will pass all kwargs to libnetcdf, then could we have a check for the current xarray version and use zlib for it and every version before it and then for the next minor/feature release (assume not a bug fix release of xarray) we switch to the new kwarg (still dependent on libnetcdf)? |
Codecov Report
@@ Coverage Diff @@
## main #2412 +/- ##
==========================================
+ Coverage 94.73% 94.74% +0.01%
==========================================
Files 329 329
Lines 48733 48861 +128
==========================================
+ Hits 46166 46295 +129
+ Misses 2567 2566 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I don't know if that's a valid assumption :D But I think it's a good idea. If that PR doesn't make it into the next xarray release, our tests will remind us. |
CF writer tests fail with
libnetcdf4 >= 4.9.0
, because they use thecompression
keyword argument, which is ignored by xarray (pydata/xarray#7388). To fix this, tie usage of thecompression
keyword to the xarray version. There's already an open PR, so we can assume that this will be fixed in the next minor release (xarray >= 2023.03
).My bad, sorry I missed that in #2390 .