aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/AreaOfInterest/AOIFeatures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/AreaOfInterest/AOIFeatures.py b/src/argaze/AreaOfInterest/AOIFeatures.py
index 24e19e1..de5cd48 100644
--- a/src/argaze/AreaOfInterest/AOIFeatures.py
+++ b/src/argaze/AreaOfInterest/AOIFeatures.py
@@ -269,7 +269,7 @@ class AOIScene():
def copy(self, exclude=[]) -> AOISceneType:
"""Copy scene partly excluding AOI by name."""
- scene_copy = AOIScene(self.__dimension)
+ scene_copy = type(self)()
for name, area in self.__areas.items():
@@ -285,7 +285,7 @@ class TimeStampedAOIScenes(DataStructures.TimeStampedBuffer):
def __setitem__(self, ts, scene):
"""Force value to inherit from AOIScene."""
- assert(type(scene) == AOIScene) # .__bases__[0]
+ assert(type(scene).__bases__[0] == AOIScene)
super().__setitem__(ts, scene)