aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py')
-rw-r--r--src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py b/src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py
index 262cfc0..1c7f7e3 100644
--- a/src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py
+++ b/src/argaze.test/GazeAnalysis/VelocityThresholdIdentification.py
@@ -125,7 +125,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), size - 1)
self.assertGreaterEqual(fixation.duration, (size - 2) * min_time)
self.assertLessEqual(fixation.duration, (size - 2) * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
def test_fixation_and_direct_saccade_identification(self):
"""Test VelocityThresholdIdentification fixation and saccade identification."""
@@ -157,7 +157,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), size - 1)
self.assertGreaterEqual(fixation.duration, (size - 2) * min_time)
self.assertLessEqual(fixation.duration, (size - 2) * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
# Check first saccade
saccade = ts_saccades.pop(0)
@@ -165,7 +165,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(saccade), 2)
self.assertGreaterEqual(saccade.duration, min_time)
self.assertLessEqual(saccade.duration, max_time)
- self.assertLessEqual(saccade.finished, True)
+ self.assertLessEqual(saccade.is_finished(), True)
# Check that last position of a movement is equal to first position of next movement
self.assertEqual(fixation[-1].timestamp, saccade[0].timestamp)
@@ -177,7 +177,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), size)
self.assertGreaterEqual(fixation.duration, (size - 1) * min_time)
self.assertLessEqual(fixation.duration, (size - 1) * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
# Check that last position of a movement is equal to first position of next movement
self.assertEqual(saccade[-1].timestamp, fixation[0].timestamp)
@@ -216,7 +216,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), size - 1) # BUG: NOT ALWAYS TRUE !!!
self.assertGreaterEqual(fixation.duration, (size - 2) * min_time)
self.assertLessEqual(fixation.duration, (size - 2) * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
# Check first saccade
saccade = ts_saccades.pop(0)
@@ -224,7 +224,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(saccade), move + 2)
self.assertGreaterEqual(saccade.duration, (move + 1) * min_time)
self.assertLessEqual(saccade.duration, (move + 1) * max_time)
- self.assertLessEqual(saccade.finished, True)
+ self.assertLessEqual(saccade.is_finished(), True)
# Check that last position of a movement is equal to first position of next movement
self.assertEqual(fixation[-1].timestamp, saccade[0].timestamp)
@@ -236,7 +236,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), size)
self.assertGreaterEqual(fixation.duration, (size - 1) * min_time)
self.assertLessEqual(fixation.duration, (size - 1) * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
# Check that last position of a movement is equal to first position of next movement
self.assertEqual(saccade[-1], fixation[0])
@@ -269,7 +269,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), 6)
self.assertGreaterEqual(fixation.duration, 5 * min_time)
self.assertLessEqual(fixation.duration, 5 * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
# Check second fixation
fixation = ts_fixations.pop(0)
@@ -277,7 +277,7 @@ class TestVelocityThresholdIdentificationClass(unittest.TestCase):
self.assertEqual(len(fixation), 4)
self.assertGreaterEqual(fixation.duration, 3 * min_time)
self.assertLessEqual(fixation.duration, 3 * max_time)
- self.assertLessEqual(fixation.finished, True)
+ self.assertLessEqual(fixation.is_finished(), True)
def test_identification_browsing(self):
"""Test VelocityThresholdIdentification identification browsing."""