aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-07-04 14:03:00 +0200
committerThéo de la Hogue2023-07-04 14:03:00 +0200
commitebc7a6274a4788bd32802447f98dd39df78e9dfd (patch)
treec7c196dc7200eaf979a9abe018805cd32e2c090f /src
parent7971ff326d906688ddd06043d5ce8154e418ae22 (diff)
downloadargaze-ebc7a6274a4788bd32802447f98dd39df78e9dfd.zip
argaze-ebc7a6274a4788bd32802447f98dd39df78e9dfd.tar.gz
argaze-ebc7a6274a4788bd32802447f98dd39df78e9dfd.tar.bz2
argaze-ebc7a6274a4788bd32802447f98dd39df78e9dfd.tar.xz
Setting unvalid gaze movement duration and amplitude to -1. Replacing accuracy by precision.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/GazeFeatures.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index ec93de2..ba3f54e 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -240,6 +240,14 @@ class GazeMovement():
# Update frozen amplitude attribute
object.__setattr__(self, 'amplitude', amplitude)
+ else:
+
+ # Update frozen duration attribute
+ object.__setattr__(self, 'duration', -1)
+
+ # Update frozen amplitude attribute
+ object.__setattr__(self, 'amplitude', -1)
+
def __str__(self) -> str:
"""String display"""
@@ -249,7 +257,7 @@ class GazeMovement():
for ts, position in self.positions.items():
- output += f'\n\t{ts}:\n\t\tvalue={position.value},\n\t\taccurracy={position.precision}'
+ output += f'\n\t{ts}:\n\t\tvalue={position.value},\n\t\tprecision={position.precision}'
return output