Hello, I created a HDF5 file containing an array with the following dimension (5000,1). I notice a big difference file size between the array creation with createCArray and createEArray. For creation of the table with createCArray, i use this script :
h5ft=openFile('test_carray.h5','w') ca=h5ft.createCArray(h5ft.root,"foo",Float32Col(),(5000,1),"carray test") for ii in range(5000): ca[ii][0]=1.0 ca.flush() h5ft.close() For creation of the table with createEArray, I use this script: h5ft=openFile('test_earray.h5','w') ca=h5ft.createEArray(h5ft.root,"foo",Float32Col(),(0,1),"earray test") for ii in range(5000): ea.append([[1.0]]) ea.flush() h5ft.close() the size files are : 1.7Ko for test_carray_file.h5 29Ko for test_earray_file.h5 I don't understand why the last file is bigger than the first ? do I make a mistake in my scripts ? Thanks, Didier
------------------------------------------------------------------------------
_______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users