diff --git a/pupil_src/shared_modules/fixation_detector.py b/pupil_src/shared_modules/fixation_detector.py index be3845e4..a839f4dd 100644 --- a/pupil_src/shared_modules/fixation_detector.py +++ b/pupil_src/shared_modules/fixation_detector.py @@ -518,6 +518,9 @@ def save_offline_data(self): ) def load_offline_data(self): + if not os.path.isfile(os.path.join(self.data_dir, "saccades.csv")): + raise FileNotFoundError() + path_stop_ts = os.path.join(self.data_dir, "fixations_stop_timestamps.npy") fixation_stop_ts = np.load(path_stop_ts) path_meta = os.path.join(self.data_dir, "fixations.meta")