diff options
author | Théo de la Hogue | 2024-03-11 16:34:28 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-03-11 16:34:28 +0100 |
commit | 98e7c91857de7a84c8264f5dfdc2459706b23b77 (patch) | |
tree | acb628ab37e88218e8b6345eb6a429e87d120db4 | |
parent | f56b287d251afd65e74757c85ff5c78517fa1595 (diff) | |
download | argaze-98e7c91857de7a84c8264f5dfdc2459706b23b77.zip argaze-98e7c91857de7a84c8264f5dfdc2459706b23b77.tar.gz argaze-98e7c91857de7a84c8264f5dfdc2459706b23b77.tar.bz2 argaze-98e7c91857de7a84c8264f5dfdc2459706b23b77.tar.xz |
Fixing bad method name.
-rw-r--r-- | src/argaze/GazeAnalysis/LinearRegression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/GazeAnalysis/LinearRegression.py b/src/argaze/GazeAnalysis/LinearRegression.py index d788f6f..c990f83 100644 --- a/src/argaze/GazeAnalysis/LinearRegression.py +++ b/src/argaze/GazeAnalysis/LinearRegression.py @@ -78,7 +78,7 @@ class GazePositionCalibrator(GazeFeatures.GazePositionCalibrator): def apply(self, gaze_position: GazeFeatures.GazePosition) -> GazePositionType: """Apply calibration onto observed gaze position.""" - if not self.calibrating: + if not self.is_calibrating(): return GazeFeatures.GazePosition(self.__linear_regression.predict(numpy.array([gaze_position]))[0], precision=gaze_position.precision, timestamp=gaze_position.timestamp) |