aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/gaze_analysis/gaze_position.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user_guide/gaze_analysis/gaze_position.md')
-rw-r--r--docs/user_guide/gaze_analysis/gaze_position.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/user_guide/gaze_analysis/gaze_position.md b/docs/user_guide/gaze_analysis/gaze_position.md
index 8856bec..0ca6a12 100644
--- a/docs/user_guide/gaze_analysis/gaze_position.md
+++ b/docs/user_guide/gaze_analysis/gaze_position.md
@@ -85,3 +85,14 @@ dataframe = pandas.read_csv('gaze_positions.csv', delimiter="\t", low_memory=Fal
ts_gaze_positions = GazeFeatures.TimeStampedGazePositions.from_dataframe(dataframe, timestamp = 'Recording timestamp [ms]', x = 'Gaze point X [px]', y = 'Gaze point Y [px]')
```
+### Iterator
+
+Like [TimeStampedBuffer](../../../argaze/#argaze.DataStructures.TimeStampedBuffer), [TimeStampedGazePositions](../../../argaze/#argaze.GazeFeatures.TimeStampedGazePositions) class provides iterator feature:
+
+```python
+for timestamp, gaze_position in ts_gaze_positions.items():
+
+ # Do something with gaze positions
+ ...
+
+```