You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which appears in the write_h5netcdf method of test_h5netcdf results in a file with no data in the variable "foo_unlimited", which I don't believe was the intention.
You can see that by attempting to read the data, which show an empty dataset. (I only know this because the new pyfive backend raises an error because it can't handle reading an unlimited variable with no data, which is a problem for pyfive which I will need to fix). You probably want to decide what you want to happen here, possibly have two tests, one with data, and one without. (h5netcdf reads this variable empty or not, fine.)
What you expected to happen:
Either the library should raise an error when the attempt to write a value to non-existent dimension is attempted (netcdf4-python does), or it should silently extend the dimension, and then fill it (which is what ChatGPT expected to happen !!)
What happened:
The following piece of code:
which appears in the
write_h5netcdf
method oftest_h5netcdf
results in a file with no data in the variable "foo_unlimited", which I don't believe was the intention.You can see that by attempting to read the data, which show an empty dataset. (I only know this because the new pyfive backend raises an error because it can't handle reading an unlimited variable with no data, which is a problem for pyfive which I will need to fix). You probably want to decide what you want to happen here, possibly have two tests, one with data, and one without. (h5netcdf reads this variable empty or not, fine.)
What you expected to happen:
Either the library should raise an error when the attempt to write a value to non-existent dimension is attempted (
netcdf4-python
does), or it should silently extend the dimension, and then fill it (which is what ChatGPT expected to happen !!)Version
h5netcdf 1.4.1
h5py 3.12.1
HDF5 1.12.2
Python 3.11.11 | packaged by conda-forge | (main, Dec 5 2024, 14:21:42) [Clang 18.1.8 ]
sys.platform darwin
sys.maxsize 9223372036854775807
numpy 2.2.1
cython (built with) 3.0.11
numpy (built against) 2.1.1
HDF5 (built against) 1.12.2
The text was updated successfully, but these errors were encountered: