aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-12-10 22:41:51 +0100
committerThéo de la Hogue2022-12-10 22:41:51 +0100
commit521ec544d0f645153b4fc07b6d53591d79a7fbca (patch)
tree5e2616c280e14264ac69c58d59ed6b641d73c807
parentfe8c843e3bf16a43ceabd8be0d5b7ae574118dc2 (diff)
downloadargaze-521ec544d0f645153b4fc07b6d53591d79a7fbca.zip
argaze-521ec544d0f645153b4fc07b6d53591d79a7fbca.tar.gz
argaze-521ec544d0f645153b4fc07b6d53591d79a7fbca.tar.bz2
argaze-521ec544d0f645153b4fc07b6d53591d79a7fbca.tar.xz
Storing each saccade gaze position into gaze status.
-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: