aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-04-20 16:22:56 +0200
committerThéo de la Hogue2022-04-20 16:22:56 +0200
commit10e72cde021b4c2a436879e178db1870103340a3 (patch)
treebc6d9ef2a2f760af2f0ff30ae93f97100a1ced3d /src
parent63e9efb0d38d6f13df7de85a2bbd143809b64ccc (diff)
downloadargaze-10e72cde021b4c2a436879e178db1870103340a3.zip
argaze-10e72cde021b4c2a436879e178db1870103340a3.tar.gz
argaze-10e72cde021b4c2a436879e178db1870103340a3.tar.bz2
argaze-10e72cde021b4c2a436879e178db1870103340a3.tar.xz
Renaming a variable.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeFeatures.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index a04e511..dfbfc2d 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -247,7 +247,7 @@ class PointerBasedVisualScan(VisualScanGenerator):
self.__ts_aoi_scenes = ts_aoi_scenes.copy()
# a dictionary to store when an aoi starts to be looked
- self.__start_dict = {}
+ self.__step_dict = {}
def __iter__(self):
"""Visual scan generator function."""
@@ -267,26 +267,26 @@ class PointerBasedVisualScan(VisualScanGenerator):
if aoi_looked:
- if not name in self.__start_dict.keys():
+ if not name in self.__step_dict.keys():
# aoi starts to be looked
- self.__start_dict[name] = {
+ self.__step_dict[name] = {
'start': ts_current,
'frames': DataStructures.TimeStampedBuffer()
}
# store current aoi
- self.__start_dict[name]['frames'][ts_current] = aoi
+ self.__step_dict[name]['frames'][ts_current] = aoi
- elif name in self.__start_dict.keys():
+ elif name in self.__step_dict.keys():
- ts_start = self.__start_dict[name]['start']
+ ts_start = self.__step_dict[name]['start']
# aoi stops to be looked
- yield ts_start, VisualScanStep(ts_current - ts_start, name, self.__start_dict[name]['frames'])
+ yield ts_start, VisualScanStep(ts_current - ts_start, name, self.__step_dict[name]['frames'])
# forget the aoi
- del self.__start_dict[name]
+ del self.__step_dict[name]
class FixationBasedVisualScan(VisualScanGenerator):
"""Build visual scan on the basis of timestamped fixations."""