-
-
Notifications
You must be signed in to change notification settings - Fork 393
-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
KeyError with InferenceData.to_netcdf
#1830
Comments
What kind of data the object contains? Maybe there is some reference to an object that fails? Or maybe the number format is not the basic python/numpy but something more exotic like tensorflow etc? |
I have the same issue and we already found out that it might be a matter of package installation. I saved a trace that I cannot save to NetCDF to zarray instead and send it to @michaelosthege, who in turn loaded it and saved it as NetCDF. I cannot load this new NetCDF he sent me. We found the issue both with arviz 0.11.2 and 0.11.4 and xarray 0.19.0 and xarray 0.18.2. |
Update: We found our environment difference: I have NetCDF 1.5.7. Downgrading to 1.5.6 solved the issue. |
Is there something we can do to fix this? |
While I never had this problem again, I do recall several instances where recent NetCDF4 and h5py versions caused incompatibilities. |
@OriolAbril should this still be open? Maybe we can close it and reopen if someone comes with a reproducible example? |
we also depend on h5necdf instead of netcdf4 thanks to @varchasgopalaswamy great contribution on #2122 which seems to be more reliable. So I do think it is safe to close and will do it. To anyone reading this, please don't hesitate to comment here or open new issues if you face anything similar. |
Describe the bug
My collaboration partners ran into this when trying to do
idata.to_netcdf
.The file was created and contains a
posterior
group, but other groups like sampler stats are missing.Any ideas?
ArviZ version: 0.11.2
The text was updated successfully, but these errors were encountered: