From 4a4d582294a2dd1dbd7a2a5472b940677101eb2a Mon Sep 17 00:00:00 2001 From: rettigl Date: Tue, 10 Dec 2024 16:44:14 +0100 Subject: [PATCH] fix file time --- sed/loader/mpes/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sed/loader/mpes/loader.py b/sed/loader/mpes/loader.py index f2333ba8..e8505800 100644 --- a/sed/loader/mpes/loader.py +++ b/sed/loader/mpes/loader.py @@ -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 @@ -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