Skip to content

Commit

Permalink
locking = False
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Sep 9, 2024
1 parent ec9aeab commit b735f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _load_h5py(cls, path: str, mode: str = "r") -> h5py.File:
# this method has cache to avoid duplicated
# loading from different DPH5Path
# However the file will be never closed?
return h5py.File(path, mode)
return h5py.File(path, mode, locking=False)

def load_numpy(self) -> np.ndarray:
"""Load NumPy array.
Expand Down

0 comments on commit b735f01

Please sign in to comment.