Problem in writing to HDF5 file using set() with compression>0
Created by: nerdogmus
The following code works just fine:
file_hdf5 = bob.io.HDF5File('myFile.hdf5', 'w') file_hdf5.set('data',numpy.zeros(5),compression=0) del file_hdf5
whereas setting the compression to a value higher than 0, gives the following error:
Call to HDF5 C-function 'H5Dcreate2' returned '-1'. HDF5 error statck follows: H5Dcreate2() @ H5D.c+170: unable to create dataset H5D__create_named() @ H5Dint.c+430: unable to create and link to dataset H5L_link_object() @ H5L.c+1638: unable to create new link to object H5L_create_real() @ H5L.c+1882: can't insert link H5G_traverse() @ H5Gtraverse.c+861: internal path traversal failed H5G_traverse_real() @ H5Gtraverse.c+641: traversal operator failed H5L_link_cb() @ H5L.c+1685: unable to create object H5O_obj_create() @ H5O.c+3015: unable to open object H5O_dset_create() @ H5Doh.c+298: unable to create dataset H5D_create() @ H5Dint.c+991: filters can only be used with chunked layout
On the other hand, using 'append' creates no such problems:
file_hdf5 = bob.io.HDF5File('myFile.hdf5', 'a') file_hdf5.append('data',numpy.zeros(5),compression=5) del file_hdf5