aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py b/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
index fd46d7e..401c6d8 100644
--- a/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
+++ b/src/argaze/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py
@@ -104,13 +104,17 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
while (ts_next - ts_start) < self.duration_threshold:
# Ignore non valid position
- # TODO ? Consider invalid position to not break fixation ?
+ # TODO ? Should we consider invalid position to not break fixation ?
if gaze_position_next.valid:
# Store selected position
ts, gaze_position = remaining_ts_gaze_positions.pop_first()
ts_gaze_positions[ts] = gaze_position
+ else:
+
+ remaining_ts_gaze_positions.pop_first()
+
try:
# Read next position
ts_next, gaze_position_next = remaining_ts_gaze_positions.first