aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeAnalysis/DispersionThresholdIdentification.py2
-rw-r--r--src/argaze/GazeAnalysis/VelocityThresholdIdentification.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
index 230e402..42450e5 100644
--- a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
+++ b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
@@ -124,7 +124,7 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
# Ignore non valid gaze position
if not gaze_position.valid:
- return GazeFeatures.UnvalidGazeMovement() if not terminate else self.current_fixation
+ return GazeFeatures.UnvalidGazeMovement() if not terminate else self.current_fixation.finish()
# Check if too much time elapsed since last gaze position
if len(self.__valid_positions) > 0:
diff --git a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py
index a514ea7..c00a778 100644
--- a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py
+++ b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py
@@ -133,7 +133,7 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
# Ignore non valid gaze position
if not gaze_position.valid:
- return GazeFeatures.UnvalidGazeMovement() if not terminate else self.current_fixation
+ return GazeFeatures.UnvalidGazeMovement() if not terminate else self.current_fixation.finish()
# Store first valid position
if self.__last_ts < 0: