aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-12-10 22:43:08 +0100
committerThéo de la Hogue2022-12-10 22:43:08 +0100
commited41a25419cddee14fa2b3aad199cda0e8f86df5 (patch)
tree9edd3424e0ceab6c667ea90740be17a56326d6fa /src
parent46ff34f3ad64b113acab71c586bd5c86cf27f7b6 (diff)
downloadargaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.zip
argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.gz
argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.bz2
argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.xz
Storing each saccade gaze position into gaze status.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/tobii_segment_gaze_movements_export.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze/utils/tobii_segment_gaze_movements_export.py b/src/argaze/utils/tobii_segment_gaze_movements_export.py
index 7dd2dad..d47d797 100644
--- a/src/argaze/utils/tobii_segment_gaze_movements_export.py
+++ b/src/argaze/utils/tobii_segment_gaze_movements_export.py
@@ -231,12 +231,12 @@ def main():
elif isinstance(gaze_movement, DispersionBasedGazeMovementIdentifier.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] = GazeFeatures.GazeStatus.from_position(start_position, 'Saccade', len(ts_saccades))
- ts_status[end_ts] = GazeFeatures.GazeStatus.from_position(end_position, 'Saccade', len(ts_saccades))
+ for ts, position in gaze_movement.positions.items():
+
+ ts_status[ts] = GazeFeatures.GazeStatus.from_position(position, 'Saccade', len(ts_saccades))
else: