Skip to content

Commit

Permalink
disable h5 file locking for PAL FEL source
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schick committed Dec 27, 2023
1 parent c19d149 commit e3c8d03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyEvalData/io/palxfel.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def parse_raw(self):
self.file_name.format(scan_number) + '.h5')

try:
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
with h5py.File(h5_file, 'r') as h5:
header = h5['R{0:04d}/header'.format(scan_number)]

Expand Down Expand Up @@ -171,6 +172,7 @@ def read_raw_scan_data(self, scan):
self.file_name.format(scan.number),
self.file_name.format(scan.number) + '.h5')

os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
with h5py.File(h5_file, 'r') as h5:
entry = h5['R{0:04d}'.format(scan.number)]
# iterate through data fields
Expand Down

0 comments on commit e3c8d03

Please sign in to comment.