diff options
author | Théo de la Hogue | 2023-04-26 15:43:12 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-04-26 15:43:12 +0200 |
commit | d64e33370981dc95e1fa0e370e077f4fec5db9b6 (patch) | |
tree | 11c4d1b26938547c6dd149912c7ce55cd5374c6f | |
parent | 1f31352f020a0d7d4d98052c71d4a4f3d3b281a7 (diff) | |
download | argaze-d64e33370981dc95e1fa0e370e077f4fec5db9b6.zip argaze-d64e33370981dc95e1fa0e370e077f4fec5db9b6.tar.gz argaze-d64e33370981dc95e1fa0e370e077f4fec5db9b6.tar.bz2 argaze-d64e33370981dc95e1fa0e370e077f4fec5db9b6.tar.xz |
Removing absolute function to calculate workload index.
-rw-r--r-- | src/argaze/PupilAnalysis/WorkloadIndex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/PupilAnalysis/WorkloadIndex.py b/src/argaze/PupilAnalysis/WorkloadIndex.py index 6728595..dfb7005 100644 --- a/src/argaze/PupilAnalysis/WorkloadIndex.py +++ b/src/argaze/PupilAnalysis/WorkloadIndex.py @@ -44,7 +44,7 @@ class PupilDiameterAnalyzer(PupilFeatures.PupilDiameterAnalyzer): workload_index = 0. - self.__variations_sum = abs(pupil_diameter.value - self.reference.value) + self.__variations_sum = pupil_diameter.value - self.reference.value self.__variations_number = 1 self.__last_ts = ts @@ -52,6 +52,6 @@ class PupilDiameterAnalyzer(PupilFeatures.PupilDiameterAnalyzer): else: - self.__variations_sum += abs(pupil_diameter.value - self.reference.value) + self.__variations_sum += pupil_diameter.value - self.reference.value self.__variations_number += 1
\ No newline at end of file |