aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/GazeFeatures.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze/GazeFeatures.py')
-rw-r--r--src/argaze/GazeFeatures.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index d69a6cc..af5a940 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -827,7 +827,7 @@ class ScanPathAnalyzer(DataFeatures.PipelineStepObject):
super().__init__()
- self.__properties = [name for (name, value) in getmembers(type(self), lambda v: isinstance(v, property))]
+ self.__properties = [name for (name, value) in self.__class__.__dict__.items() if isinstance(value, property)]
@property
def analysis(self) -> DataFeatures.DataDictionary:
@@ -836,9 +836,7 @@ class ScanPathAnalyzer(DataFeatures.PipelineStepObject):
for p in self.__properties:
- if p != 'analysis':
-
- analysis[p] = getattr(self, p)
+ analysis[p] = getattr(self, p)
return DataFeatures.DataDictionary(analysis)
@@ -1171,7 +1169,7 @@ class AOIScanPathAnalyzer(DataFeatures.PipelineStepObject):
super().__init__()
- self.__properties = [name for (name, value) in getmembers(type(self), lambda v: isinstance(v, property))]
+ self.__properties = [name for (name, value) in self.__class__.__dict__.items() if isinstance(value, property)]
@property
def analysis(self) -> dict:
@@ -1180,9 +1178,7 @@ class AOIScanPathAnalyzer(DataFeatures.PipelineStepObject):
for p in self.__properties:
- if p != 'analysis':
-
- analysis[p] = getattr(self, p)
+ analysis[p] = getattr(self, p)
return DataFeatures.DataDictionary(analysis)