diff options
-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: |