Open mschwoer opened 3 weeks ago
Try export HDF5_USE_FILE_LOCKING='FALSE'
before running multiple tasks
To be honest, I also don't know why it is a
instead of r
here...
Try
export HDF5_USE_FILE_LOCKING='FALSE'
before running multiple tasks
@mschwoer Is the issue solved by this command?
didn't check yet.. but generally, I feel that file locking has its benefits, to prevent corruption by simultaneous writing. So disabling it would make things less robuts. But could we not just change the "a" into an "r" in the piece of code mentioned above?
I think Sander use "a" instead of "r" for a purpose ... I think we should add a readonly kwargs to the HDF reader
there is already a read_only
parameter.. can't we leverage that like
if delete_existing:
mode = "w"
elif read_only:
mode = "r"
else:
mode = "a"
with h5py.File(file_name, mode): # , swmr=True):
pass
Describe the bug When two alphaDIA instance access the same speclib file (for reading) in the same instance of time, alphabase throws an error (see below).
Expected behavior No error, as the file is just opened for reading in this cases I think the problem is that files are opened for 'a' here (
hdf.py
)Logs