Skip to content

Commit

Permalink
io.utils.open: do not lock the file
Browse files Browse the repository at this point in the history
  • Loading branch information
woutdenolf committed Sep 15, 2023
1 parent 6d1ed0d commit 020c3d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/silx/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

from silx.utils.proxy import Proxy
from .url import DataUrl
from . import h5py_utils
from .._version import calc_hexversion

import h5py
Expand Down Expand Up @@ -483,9 +484,9 @@ def _open_local_file(filename):

if h5py.is_hdf5(filename):
try:
return h5py.File(filename, "r")
return h5py_utils.File(filename, "r")
except OSError:
return h5py.File(filename, "r", libver='latest', swmr=True)
return h5py_utils.File(filename, "r", libver='latest', swmr=True)

try:
from . import fabioh5
Expand Down

0 comments on commit 020c3d0

Please sign in to comment.