From 6e847ff0fef3139a4a21cf9340b984da6bf9f310 Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:26:40 -0600 Subject: [PATCH] fix: falloff code delete --- EyeTrackApp/utils/eye_falloff.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EyeTrackApp/utils/eye_falloff.py b/EyeTrackApp/utils/eye_falloff.py index d918fd1..61769aa 100644 --- a/EyeTrackApp/utils/eye_falloff.py +++ b/EyeTrackApp/utils/eye_falloff.py @@ -45,13 +45,13 @@ def velocity_falloff(self, var, out_x, out_y): if self.eye_id == EyeId.RIGHT: var.r_eye_velocity = var.average_velocity if self.settings.gui_outer_side_falloff: - dist abs(np.square(var.l_eye_x - out_x) - np.square(var.left_y - out_y)) + dist = abs( + np.sqrt( + abs(np.square(var.l_eye_x - out_x) - np.square(var.left_y - out_y)) ) ) # print(dist, "r") # TODO remove once testing is done - if dist > self.s = abs( - np.sqrt( - ettings.gui_eye_dominant_diff_thresh: + if dist > self.settings.gui_eye_dominant_diff_thresh: falloff = True if ( not self.settings.gui_left_eye_dominant