Skip to content

Commit

Permalink
Online Fixation Detector: Fix removing deprecated gaze from queue
Browse files Browse the repository at this point in the history
  • Loading branch information
papr committed Nov 21, 2019
1 parent 7cb14e0 commit 380f5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pupil_src/shared_modules/fixation_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def recent_events(self, events):
age_threshold = ts_newest - self.min_duration / 1000.0
# pop elements until only one element below the age threshold remains:
while self.history[1]["timestamp"] < age_threshold:
self.history.popleft() # remove outdated gaze points
del self.history[0] # remove outdated gaze points

except IndexError:
pass
Expand Down

0 comments on commit 380f5bc

Please sign in to comment.