From 78d2f6801e2b1c80d4685c9fb3186c205b7dc9e6 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Mon, 11 Mar 2024 17:11:49 +0100 Subject: removing property decorator to method that was not an object property but an object status. --- .../advanced_topics/scripting.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md index 4935847..19d277f 100644 --- a/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md +++ b/docs/user_guide/gaze_analysis_pipeline/advanced_topics/scripting.md @@ -74,21 +74,21 @@ Calling [ArFrame.look](../../../argaze.md/#argaze.ArFeatures.ArFrame.look) metho try: # Look ArFrame at a timestamped gaze position - ar_frame.look(timestamp, gaze_position): + ar_frame.look(timestamped_gaze_position): # Do something with last gaze position - ... ar_frame.last_gaze_position + ... ar_frame.last_gaze_position() # Check if a gaze movement has been identified - if ar_frame.last_gaze_movement and ar_frame.last_gaze_movement.is_finished(): + if ar_frame.last_gaze_movement() and ar_frame.last_gaze_movement().is_finished(): # Do something with identified fixation - if GazeFeatures.is_fixation(ar_frame.last_gaze_movement): + if GazeFeatures.is_fixation(ar_frame.last_gaze_movement()): ... # Do something with identified saccade - elif GazeFeatures.is_saccade(ar_frame.last_gaze_movement): + elif GazeFeatures.is_saccade(ar_frame.last_gaze_movement()): ... @@ -103,7 +103,7 @@ Calling [ArFrame.look](../../../argaze.md/#argaze.ArFeatures.ArFrame.look) metho for layer_name, ar_layer in ar_frame.layers.items(): # Do something with last looked aoi name - ... ar_frame.last_looked_aoi_name + ... ar_frame.last_looked_aoi_name() if ar_layer.is_analysis_available(): @@ -119,11 +119,11 @@ Calling [ArFrame.look](../../../argaze.md/#argaze.ArFeatures.ArFrame.look) metho Let's understand the meaning of each data. -### *ar_frame.last_gaze_position* +### *ar_frame.last_gaze_position()* This is the last calibrated [GazePosition](../../../argaze.md/#argaze.GazeFeatures.GazePosition) returned by [GazePositionCalibrator](../../../argaze.md/#argaze.GazeFeatures.GazePositionCalibrator) if one is instanciated else, it is the last given [GazePosition](../../../argaze.md/#argaze.GazeFeatures.GazePosition). -### *ar_frame.last_gaze_movement* +### *ar_frame.last_gaze_movement()* Last [GazeMovement](../../../argaze.md/#argaze.GazeFeatures.GazeMovement) identified by [ArFrame.gaze_movement_identifier](../../../argaze.md/#argaze.ArFeatures.ArFrame) object from incoming consecutive timestamped gaze positions. If no gaze movement have been identified, it returns an empty [GazeMovement](../../../argaze.md/#argaze.GazeFeatures.GazeMovement). @@ -134,19 +134,19 @@ Then, the last gaze movement type can be tested thanks to [GazeFeatures.is_fixat ### *ar_frame.is_analysis_available()* -This method allows to know when new scan path analysis are available. +To know when new scan path analysis is available. ### *ar_frame.analysis()* This an iterator to access to all scan path analysis. -### *ar_layer.last_looked_aoi_name* +### *ar_layer.last_looked_aoi_name()* The name of the last aoi matching done by [AoiMatcher](../../../argaze.md/#argaze.GazeFeatures.AoiMatcher) if one is instanciated else, it is a None value. ### *ar_layer.is_analysis_available()* -This flag allows to know when new aoi scan path analysis are available. +To know when new aoi scan path analysis is available. ### *ar_layer.analysis()* -- cgit v1.1