aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeFeatures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index f26a3ed..ec93de2 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -287,7 +287,7 @@ class UnvalidGazeMovement(GazeMovement):
self.message = message
- super().__init__([])
+ super().__init__(TimeStampedGazePositions())
def draw(self, image: numpy.array, color):
@@ -453,7 +453,7 @@ class GazeMovementIdentifier():
gaze_movement = self.identify(ts, gaze_position, terminate=(ts == last_ts))
- if gaze_movement:
+ if gaze_movement.valid:
start_ts, start_position = gaze_movement.positions.first