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 /src/argaze/utils | |
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 'src/argaze/utils')
-rw-r--r-- | src/argaze/utils/demo_data/demo_frame_logger.py | 4 | ||||
-rw-r--r-- | src/argaze/utils/demo_data/demo_layer_logger.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/utils/demo_data/demo_frame_logger.py b/src/argaze/utils/demo_data/demo_frame_logger.py index 57bc149..2bb4bdc 100644 --- a/src/argaze/utils/demo_data/demo_frame_logger.py +++ b/src/argaze/utils/demo_data/demo_frame_logger.py @@ -16,7 +16,7 @@ class FixationLogger(DataFeatures.PipelineStepObserver, UtilsFeatures.FileWriter """Log fixations.""" # Log fixations - if GazeFeatures.is_fixation(frame.last_gaze_movement) and frame.last_gaze_movement.finished: + if GazeFeatures.is_fixation(frame.last_gaze_movement) and frame.last_gaze_movement.is_finished(): log = ( timestamp, @@ -32,7 +32,7 @@ class ScanPathAnalysisLogger(DataFeatures.PipelineStepObserver, UtilsFeatures.Fi def on_look(self, timestamp, frame, exception): """Log scan path metrics.""" - if frame.analysis_available: + if frame.is_analysis_available(): log = ( timestamp, diff --git a/src/argaze/utils/demo_data/demo_layer_logger.py b/src/argaze/utils/demo_data/demo_layer_logger.py index 47cf577..d702ac1 100644 --- a/src/argaze/utils/demo_data/demo_layer_logger.py +++ b/src/argaze/utils/demo_data/demo_layer_logger.py @@ -15,7 +15,7 @@ class AOIScanPathAnalysisLogger(DataFeatures.PipelineStepObserver, UtilsFeatures def on_look(self, timestamp, layer, exception): """Log aoi scan path metrics""" - if layer.analysis_available: + if layer.is_analysis_available(): log = ( timestamp, |