diff options
author | Théo de la Hogue | 2023-03-22 15:46:43 +0100 |
---|---|---|
committer | Théo de la Hogue | 2023-03-22 15:46:43 +0100 |
commit | 506b7019f4931097f4c87158a6787c56a79ee4bb (patch) | |
tree | 9f0233762d0dd21a841d1e141c7ba9e4b719295a /src/argaze.test/GazeAnalysis | |
parent | 349dc1440a9d880a17dd55c7c4995646ff5bb523 (diff) | |
download | argaze-506b7019f4931097f4c87158a6787c56a79ee4bb.zip argaze-506b7019f4931097f4c87158a6787c56a79ee4bb.tar.gz argaze-506b7019f4931097f4c87158a6787c56a79ee4bb.tar.bz2 argaze-506b7019f4931097f4c87158a6787c56a79ee4bb.tar.xz |
Fixing DispersionBasedGazeMovementIdentifier test by adding a terminate option to identify method.
Diffstat (limited to 'src/argaze.test/GazeAnalysis')
-rw-r--r-- | src/argaze.test/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze.test/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py b/src/argaze.test/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py index c732a6f..cf0af1e 100644 --- a/src/argaze.test/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py +++ b/src/argaze.test/GazeAnalysis/DispersionBasedGazeMovementIdentifier.py @@ -138,7 +138,7 @@ class TestDispersionBasedGazeMovementIdentifierClass(unittest.TestCase): # Check first fixation ts, fixation = ts_fixations.pop_first() - self.assertEqual(len(fixation.positions.keys()), size-1) + self.assertEqual(len(fixation.positions.keys()), size) self.assertLessEqual(fixation.deviation_max, deviation_max) self.assertGreaterEqual(fixation.duration, size * min_time) self.assertLessEqual(fixation.duration, size * max_time) @@ -146,9 +146,9 @@ class TestDispersionBasedGazeMovementIdentifierClass(unittest.TestCase): # Check first saccade ts, saccade = ts_saccades.pop_first() - self.assertEqual(len(saccade.positions.keys()), 2) - self.assertGreaterEqual(saccade.duration, min_time) - self.assertLessEqual(saccade.duration, max_time) + self.assertEqual(len(saccade.positions.keys()), 1) + self.assertGreaterEqual(saccade.duration, 0.) + self.assertLessEqual(saccade.duration, 0.) # Check second fixation ts, fixation = ts_fixations.pop_first() |