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
string handling changed in h5py >= 3.0 #81
Comments
Quoting from the
AFAICS the problem is with the variable-length strings which are returned as |
The major pain is now, that ping @shoyer I would try to come up with a PR to fix this, but wanted to hear your thoughts about possible handling. As compatibility with |
See #82 for possible fix. |
I think using |
@shoyer I must admit that I've never used the
One solution would be, if I understand your suggestion correctly, to apply this only to the We could add some keyword argument for the user to select the behaviour (eg. I very much appreciate any further suggestions and ideas. |
Your idea of adding a |
@drew-parsons Thanks for the feedback. I'll try to integrate this into #82 when I find time. |
I like the new keyword argument + deprecation cycle. |
In
h5py
storing of strings has changed (see https://docs.h5py.org/en/latest/whatsnew/3.0.html and https://docs.h5py.org/en/latest/strings.html).This currently breaks the testsuite and also downstream packages using
h5py>=3.0
(pydata/xarray#4570).Below is the
ncdump
of the three write methods used in the testsuit (usingh5py=3.1
), where the output ofnetcdf4
differs from the output of the twoh5netcdf
flavours.write module netcdf4:
write Module h5netcdf.legacy API:
write Module h5netcdf API:
A quick check using
h5py=2.10.0
leads to the same results. That means:h5py<3.0
.h5py>=3.0
.One more note: Another indicator that only reading is the problem, is that the testsuite doesn't break for the tests where
netcdf4
is used for reading back files.The text was updated successfully, but these errors were encountered: