-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
RuntimeError when writing to a file with to_netcdf #2079
Comments
We will need to look into this. It is somehow related to netcdf 1.6 but I have no idea why all tests which have already run on netcdf 1.6 continue to pass (some of the things they check is idata-netcdf-idata round trip). For now it looks like you will need to downgrade netcdf or figure out what exactly does the centered_eight example have that triggers this error. Note: I have done some quick tests, and out of the netcdf examples provided with |
I have run into this error also. It seems to occur when there are data or coordinates that are of an This issue in |
I wonder if we could add checks for these? |
Anyone able to take this on? |
Describe the bug
Trying to write an
InferenceData
object to a file usingto_netcdf
results in an error:RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter
To Reproduce
Stacktrace
Expected behavior
The data set gets written to the file.
Additional context
arviz version: 0.12.1
xarray version: 2022.3.0
netCDF4 version: 1.6.0
This was on a computer cluster which runs Debian GNU/Linux 10 (buster).
The file actually is created but reading it in shows that it's corrupted:
The text was updated successfully, but these errors were encountered: