aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/GazeFeatures.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index 678ddb8..3f4ef29 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -215,7 +215,7 @@ class DispersionBasedMovementIdentifier(MovementIdentifier):
(ts_start, gaze_position_start) = remaining_ts_gaze_positions.pop_first()
# Invalid start position
- if not gaze_position_start.valid():
+ if not gaze_position_start.valid:
self.__ts_gaze_positions.pop_first()
continue
@@ -229,7 +229,7 @@ class DispersionBasedMovementIdentifier(MovementIdentifier):
# Ignore non valid position
# TODO ? Consider invalid position to not break fixation ?
- if gaze_position_current.valid():
+ if gaze_position_current.valid:
ts_gaze_positions[ts_current] = gaze_position_current
@@ -256,7 +256,7 @@ class DispersionBasedMovementIdentifier(MovementIdentifier):
ts_next, position_next = remaining_ts_gaze_positions.pop_first()
# Invalid next position
- if not position_next.valid():
+ if not position_next.valid:
continue
ts_gaze_positions[ts_next] = position_next