I did some research and I stored the results in an HDF5 file using the h5py module. I opened and read the data a bunch of times using both the h5py module and the HDF view tool from the HDF5 group. This all worked fine, until one day my computer crashed while the file was open in HDF view.
After rebooting the pc I could no longer open the file. The HDF view tool shows a generic error: "Error opening file "
I wrote the file in h5py, so I decided to try and use this for reading the data aswell. The file was written in swmr mode with libver='latest'. I tried the following:
with h5py.File(fpath, 'r', swmr=True, libver='latest') as f:
pass
Returns an error "OSError: Unable to open file (file is not already open for SWMR writing)"
with h5py.File(fpath, 'r') as f:
pass
Returns an error "OSError: Unable to open file (file is already open for write (may use h5clear file to clear file consistency flags))"
Now I'm wondering, is the h5clear option implemented in the h5py module yet? I cannot find any information about this anywhere.
Edit: Removed the file (sorry)