Skip to content

Commit

Permalink
fix file time
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Dec 10, 2024
1 parent a903770 commit 4a4d582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sed/loader/mpes/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def hdf5_to_array(
except KeyError:
# get the start time of the file from its modification date if the key
# does not exist (old files)
start_time = os.path.getmtime(h5file.filename) # convert to ms
start_time = os.path.getmtime(h5filename) # convert to ms
# the modification time points to the time when the file was finished, so we
# need to correct for the time it took to write the file
start_time -= len(ms_marker) / 1000
Expand Down Expand Up @@ -403,7 +403,7 @@ def hdf5_to_timed_array(
except KeyError:
# get the start time of the file from its modification date if the key
# does not exist (old files)
start_time = os.path.getmtime(h5file.filename) # convert to ms
start_time = os.path.getmtime(h5filename) # convert to ms
# the modification time points to the time when the file was finished, so we
# need to correct for the time it took to write the file
start_time -= len(ms_marker) / 1000
Expand Down

0 comments on commit 4a4d582

Please sign in to comment.