diff options
author | Théo de la Hogue | 2024-03-11 16:29:09 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-03-11 16:29:09 +0100 |
commit | f56b287d251afd65e74757c85ff5c78517fa1595 (patch) | |
tree | 22cb8405857caa3202775f8728120cc5ba0e8689 /docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md | |
parent | 9943b930ec42556bd60e8bb33d56d1ab4a9638b3 (diff) | |
download | argaze-f56b287d251afd65e74757c85ff5c78517fa1595.zip argaze-f56b287d251afd65e74757c85ff5c78517fa1595.tar.gz argaze-f56b287d251afd65e74757c85ff5c78517fa1595.tar.bz2 argaze-f56b287d251afd65e74757c85ff5c78517fa1595.tar.xz |
Harmonizing name of methods returning a boolean status.
Diffstat (limited to 'docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md')
-rw-r--r-- | docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md b/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md index 4c53258..5c60f8c 100644 --- a/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md +++ b/docs/user_guide/gaze_analysis_pipeline/timestamped_gaze_positions_edition.md @@ -20,7 +20,7 @@ dataframe = pandas.read_csv('gaze_positions.csv', delimiter=",", low_memory=Fals ts_gaze_positions = GazeFeatures.TimeStampedGazePositions.from_dataframe(dataframe, timestamp = 'Recording timestamp [ms]', x = 'Gaze point X [px]', y = 'Gaze point Y [px]') # Iterate over timestamped gaze positions -for gaze_position in ts_gaze_positions: +for timestamped_gaze_position in ts_gaze_positions: # Do something with each timestamped gaze position ... @@ -37,8 +37,8 @@ from argaze import GazeFeatures # Assuming to be inside the function where timestamp_µs, gaze_x and gaze_y values are catched ... - # Define a basic gaze position converting microsecond timestamp into second timestamp - gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y), timestamp=timestamp_µs * 1e-6) + # Define a timestamped gaze position converting microsecond timestamp into second timestamp + timestamped_gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y), timestamp=timestamp_µs * 1e-6) # Do something with each timestamped gaze position ... @@ -55,8 +55,8 @@ start_time = time.time() # Assuming to be inside the function where only gaze_x and gaze_y values are catched (no timestamp) ... - # Define a basic gaze position with millisecond timestamp - gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y), timestamp=int((time.time() - start_time) * 1e3)) + # Define a timestamped gaze position with millisecond timestamp + timestamped_gaze_position = GazeFeatures.GazePosition((gaze_x, gaze_y), timestamp=int((time.time() - start_time) * 1e3)) # Do something with each timestamped gaze position ... |