From 2ee8b9a41db136acc9e14a4839b4791fd1dc8ce7 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 12 Mar 2024 16:16:31 +0100 Subject: Defining ScanPathanalyzer and AOIScanPathAnalyzer analysis as a method. --- src/argaze/ArFeatures.py | 4 ++-- src/argaze/GazeFeatures.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 303c60c..75da792 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -210,7 +210,7 @@ class ArLayer(DataFeatures.SharedObject, DataFeatures.PipelineStepObject): for aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer in self.__aoi_scan_path_analyzers.items(): - yield aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer.analysis + yield aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer.analysis() def as_dict(self) -> dict: """Export ArLayer properties as dictionary.""" @@ -632,7 +632,7 @@ class ArFrame(DataFeatures.SharedObject, DataFeatures.PipelineStepObject): for aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer in self.__aoi_scan_path_analyzers.items(): - yield aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer.analysis + yield aoi_scan_path_analyzer_module_path, aoi_scan_path_analyzer.analysis() def as_dict(self) -> dict: """Export ArFrame attributes as dictionary. diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py index 902a46b..2143a78 100644 --- a/src/argaze/GazeFeatures.py +++ b/src/argaze/GazeFeatures.py @@ -835,8 +835,8 @@ class ScanPathAnalyzer(DataFeatures.PipelineStepObject): self.__properties = [name for (name, value) in self.__class__.__dict__.items() if isinstance(value, property)] - @property def analysis(self) -> DataFeatures.DataDictionary: + """Get all scan path analyzer analysis as data dictionary.""" analysis = {} @@ -1197,8 +1197,8 @@ class AOIScanPathAnalyzer(DataFeatures.PipelineStepObject): self.__properties = [name for (name, value) in self.__class__.__dict__.items() if isinstance(value, property)] - @property def analysis(self) -> dict: + """Get all aoi scan path analyzer analysis as data dictionary.""" analysis = {} -- cgit v1.1