aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/GazeFeatures.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze.test/GazeFeatures.py')
-rw-r--r--src/argaze.test/GazeFeatures.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argaze.test/GazeFeatures.py b/src/argaze.test/GazeFeatures.py
index 8cd2e56..dd3f1c0 100644
--- a/src/argaze.test/GazeFeatures.py
+++ b/src/argaze.test/GazeFeatures.py
@@ -15,7 +15,7 @@ from argaze import GazeFeatures
import numpy
import pandas
-def random_gaze_positions(size, screen_dimension: tuple[float, float] = (1, 1)):
+def random_gaze_positions(size, frame_dimension: tuple[float, float] = (1, 1)):
""" Generate random TimeStampedGazePsoitions for testing purpose.
Timestamps are current time.
GazePositions are random values.
@@ -29,7 +29,7 @@ def random_gaze_positions(size, screen_dimension: tuple[float, float] = (1, 1)):
for i in range(0, size):
# Edit gaze position
- random_gaze_position = GazeFeatures.GazePosition((random.random() * screen_dimension[0], random.random() * screen_dimension[1]))
+ random_gaze_position = GazeFeatures.GazePosition((random.random() * frame_dimension[0], random.random() * frame_dimension[1]))
# Store gaze position
ts_gaze_positions[time.time()] = random_gaze_position
@@ -303,18 +303,18 @@ class TestScanStepClass(unittest.TestCase):
self.assertEqual(scan_step.last_saccade, saccade)
self.assertGreater(scan_step.duration, 0)
-def build_scan_path(size, screen_dimension: tuple[float, float] = (1, 1)):
+def build_scan_path(size, frame_dimension: tuple[float, float] = (1, 1)):
"""Build scan path"""
scan_path = GazeFeatures.ScanPath()
for i in range(size):
- fixation = TestFixation(random_gaze_positions(10, screen_dimension))
+ fixation = TestFixation(random_gaze_positions(10, frame_dimension))
ts, _ = fixation.positions.first
scan_path.append_fixation(ts, fixation)
- saccade = TestSaccade(random_gaze_positions(2, screen_dimension))
+ saccade = TestSaccade(random_gaze_positions(2, frame_dimension))
ts, _ = saccade.positions.first
scan_path.append_saccade(ts, saccade)