diff options
Diffstat (limited to 'src/argaze/GazeFeatures.py')
-rw-r--r-- | src/argaze/GazeFeatures.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py index 12cccbc..af9f943 100644 --- a/src/argaze/GazeFeatures.py +++ b/src/argaze/GazeFeatures.py @@ -15,7 +15,7 @@ import json import importlib from inspect import getmembers -from argaze import DataStructures +from argaze import DataFeatures from argaze.AreaOfInterest import AOIFeatures import numpy @@ -119,7 +119,7 @@ class UnvalidGazePosition(GazePosition): TimeStampedGazePositionsType = TypeVar('TimeStampedGazePositions', bound="TimeStampedGazePositions") # Type definition for type annotation convenience -class TimeStampedGazePositions(DataStructures.TimeStampedBuffer): +class TimeStampedGazePositions(DataFeatures.TimeStampedBuffer): """Define timestamped buffer to store gaze positions.""" def __setitem__(self, key, value: GazePosition|dict): @@ -255,7 +255,7 @@ class GazePositionCalibrator(): # Open file with open(self.__json_filepath, 'w', encoding='utf-8') as calibration_file: - json.dump({DataStructures.module_path(self):DataStructures.JsonEncoder().default(self)}, calibration_file, ensure_ascii=False, indent=4) + json.dump({DataFeatures.module_path(self):DataFeatures.JsonEncoder().default(self)}, calibration_file, ensure_ascii=False, indent=4) def store(self, timestamp: int|float, observed_gaze_position: GazePosition, expected_gaze_position: GazePosition): """Store observed and expected gaze positions. @@ -466,7 +466,7 @@ def is_saccade(gaze_movement): TimeStampedGazeMovementsType = TypeVar('TimeStampedGazeMovements', bound="TimeStampedGazeMovements") # Type definition for type annotation convenience -class TimeStampedGazeMovements(DataStructures.TimeStampedBuffer): +class TimeStampedGazeMovements(DataFeatures.TimeStampedBuffer): """Define timestamped buffer to store gaze movements.""" def __setitem__(self, key, value: GazeMovement): @@ -507,7 +507,7 @@ class GazeStatus(GazePosition): TimeStampedGazeStatusType = TypeVar('TimeStampedGazeStatus', bound="TimeStampedGazeStatus") # Type definition for type annotation convenience -class TimeStampedGazeStatus(DataStructures.TimeStampedBuffer): +class TimeStampedGazeStatus(DataFeatures.TimeStampedBuffer): """Define timestamped buffer to store list of gaze statusa. !!! note |