aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeFeatures.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index d829e92..dd07974 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -261,12 +261,12 @@ class GazeMovementIdentifier():
elif isinstance(gaze_movement, Saccade):
start_ts, start_position = gaze_movement.positions.first
- end_ts, end_position = gaze_movement.positions.last
-
+
ts_saccades[start_ts] = gaze_movement
- ts_status[start_ts] = GazeStatus.from_position(start_position, 'Saccade', len(ts_saccades))
- ts_status[end_ts] = GazeStatus.from_position(end_position, 'Saccade', len(ts_saccades))
+ for ts, position in gaze_movement.positions.items():
+
+ ts_status[ts] = GazeStatus.from_position(position, 'Saccade', len(ts_saccades))
else: