From 54d315047a2a52ee1210be35982ad2a52754913a Mon Sep 17 00:00:00 2001 From: rettigl Date: Sun, 5 Nov 2023 23:12:54 +0100 Subject: [PATCH] fix time stamps of timed data frame in mpes loader --- sed/loader/mpes/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sed/loader/mpes/loader.py b/sed/loader/mpes/loader.py index 23b9cf48..da10d8ef 100644 --- a/sed/loader/mpes/loader.py +++ b/sed/loader/mpes/loader.py @@ -369,7 +369,7 @@ def hdf5_to_timed_array( # need to correct for the time it took to write the file start_time -= len(ms_marker) / 1000 - time_stamp_data = start_time + ms_marker / 1000 + time_stamp_data = start_time + np.arange(len(ms_marker)) / 1000 data_list.append(time_stamp_data)