diff options
author | Théo de la Hogue | 2022-12-10 22:43:08 +0100 |
---|---|---|
committer | Théo de la Hogue | 2022-12-10 22:43:08 +0100 |
commit | ed41a25419cddee14fa2b3aad199cda0e8f86df5 (patch) | |
tree | 9edd3424e0ceab6c667ea90740be17a56326d6fa | |
parent | 46ff34f3ad64b113acab71c586bd5c86cf27f7b6 (diff) | |
download | argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.zip argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.gz argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.bz2 argaze-ed41a25419cddee14fa2b3aad199cda0e8f86df5.tar.xz |
Storing each saccade gaze position into gaze status.
-rw-r--r-- | src/argaze/utils/tobii_segment_gaze_movements_export.py | 8 |
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: |