Hello,
I have a list of times where time has been saved in order in. Later I loop
over this list and create groups in my h5file.The reason I had ordered
times in my list was so that I could finally have an h5 file with groups
in order,but running the following lines, when I open my file, the order
has not been kept.
time_List=[0,1,2,10,20]
with h5py.File(outputFilePathHDF5,mode='w') as self.hdf5File:
for time in time_List:
datasetTimeName= str(time)
_h5dset =
self.hdf5File.create_group(datasetTimeName)
and I end up having the groups in this order.
0
1
10
2
20
What should I change so the groups in my h5 file will keep the order based
when they were created ? or in general how can I create_groups with some
sort of sort in h5 file?
Thanks for your help
···
--
Hedieh Ebrahimi
Consultant