diff options
-rw-r--r-- | src/argaze/GazeFeatures.py | 16 |
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.""" |