diff options
author | Théo de la Hogue | 2023-05-24 10:52:58 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-05-24 10:52:58 +0200 |
commit | 2fc1686f2d5587128730f564495794386bc57581 (patch) | |
tree | 5305617f877225a039faeb6e254ad98671e5fc62 /src | |
parent | 952c2981598800f399fd09448e478df94aa7703c (diff) | |
download | argaze-2fc1686f2d5587128730f564495794386bc57581.zip argaze-2fc1686f2d5587128730f564495794386bc57581.tar.gz argaze-2fc1686f2d5587128730f564495794386bc57581.tar.bz2 argaze-2fc1686f2d5587128730f564495794386bc57581.tar.xz |
Renaming method.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/GazeFeatures.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py index 21841ac..d17d5b5 100644 --- a/src/argaze/GazeFeatures.py +++ b/src/argaze/GazeFeatures.py @@ -678,20 +678,20 @@ class AOIScanPath(list): return None - def fixation_count(self): + def fixations_count(self): """Get how many fixations are there in the scan path and how many fixation are there in each aoi.""" - scan_fixation_count = 0 - aoi_fixation_count = {aoi: 0 for aoi in self.__aoi_letter} + scan_fixations_count = 0 + aoi_fixations_count = {aoi: 0 for aoi in self.__expected_aois} for aoi_scan_step in self: - step_fixation_count = len(aoi_scan_step.movements) - 1 # -1: to ignore last saccade + step_fixations_count = len(aoi_scan_step.movements) - 1 # -1: to ignore last saccade - scan_fixation_count += step_fixation_count - aoi_fixation_count[aoi_scan_step.aoi] += step_fixation_count + scan_fixations_count += step_fixations_count + aoi_fixations_count[aoi_scan_step.aoi] += step_fixations_count - return scan_fixation_count, aoi_fixation_count + return scan_fixations_count, aoi_fixations_count class AOIScanPathAnalyzer(): """Abstract class to define what should provide a aoi scan path analyzer.""" |