I have several hdf5 files with the same shape, containing x and y columns. I need to append those, to get one hdf5 file, which contains all the data.
My code so far:
def append_to_h5(new_file, file_list):
f = h5py.File(new_file, 'a')
for file in file_list:
with h5py.File(file, 'r') as d:
f.create_dataset("./", data=d)
f.close()
#new_file <- is a file path to the new hdf5 file
#file_list <- contains all the pathes of the hdf5 files, which I want to append
The error
in make_new_dset tid = h5t.py_create(dtype, logical=1)
File "h5py/h5t.pyx", line 1634, in h5py.h5t.py_create
File "h5py/h5t.pyx", line 1656, in h5py.h5t.py_create
File "h5py/h5t.pyx", line 1717, in h5py.h5t.py_create
TypeError: No conversion path for dtype: dtype('<U1')
Any ideas are appreciated Thanks