From 9bc7c5224e0dce38933b4f8ba033b7c5b1ff4f43 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 3 May 2022 16:38:45 +0200 Subject: Closing started steps. --- src/argaze/GazeFeatures.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py index 50104d4..723b289 100644 --- a/src/argaze/GazeFeatures.py +++ b/src/argaze/GazeFeatures.py @@ -322,6 +322,14 @@ class PointerBasedVisualScan(VisualScanGenerator): except KeyError: pass + # close started steps + for name, step in self.__step_dict.items(): + + ts_start = step['start'] + + # aoi stops to be looked + yield round(ts_start), VisualScanStep(round(ts_current - ts_start), name, step['look_at']) + class FixationBasedVisualScan(VisualScanGenerator): """Build visual scan on the basis of timestamped fixations.""" -- cgit v1.1