Skip to content

Commit

Permalink
Detect missing saccades and re-run detector if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Oct 11, 2024
1 parent 7c45c60 commit 09d1ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pupil_src/shared_modules/fixation_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 09d1ada

Please sign in to comment.