aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2023-11-29 17:24:32 +0100
committerThéo de la Hogue2023-11-29 17:24:32 +0100
commitdb6501d669014e8d89749edfd08e8a1a34d3a90b (patch)
treed1b53ff8567260f9150c2e72d1d21ec4ba826fcc
parent7937d9459302b1534b6ad604a5c5ee5d6c5d4e82 (diff)
downloadargaze-db6501d669014e8d89749edfd08e8a1a34d3a90b.zip
argaze-db6501d669014e8d89749edfd08e8a1a34d3a90b.tar.gz
argaze-db6501d669014e8d89749edfd08e8a1a34d3a90b.tar.bz2
argaze-db6501d669014e8d89749edfd08e8a1a34d3a90b.tar.xz
Considering saccade from 2 positions.
-rw-r--r--src/argaze/GazeAnalysis/DispersionThresholdIdentification.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
index 9d8cad2..36dfabf 100644
--- a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
+++ b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py
@@ -250,7 +250,7 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
return Fixation(self.__fixation_positions)
- if len(self.__saccade_positions) > 0:
+ if len(self.__saccade_positions) > 1:
return Saccade(self.__saccade_positions)
@@ -269,7 +269,7 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier):
@property
def current_saccade(self) -> SaccadeType:
- if len(self.__saccade_positions) > 0:
+ if len(self.__saccade_positions) > 1:
return Saccade(self.__saccade_positions)