diff options
author | Théo de la Hogue | 2022-11-21 19:32:18 +0100 |
---|---|---|
committer | Théo de la Hogue | 2022-11-21 19:32:18 +0100 |
commit | 7fcd45338629bc88dfcc51f395a8577c35de5c58 (patch) | |
tree | d4131b98545d2e8284bcdcea32074ded0d83a2ff /src | |
parent | 880b3938ca230e54c02bc7a87c7bd38b31b34c77 (diff) | |
download | argaze-7fcd45338629bc88dfcc51f395a8577c35de5c58.zip argaze-7fcd45338629bc88dfcc51f395a8577c35de5c58.tar.gz argaze-7fcd45338629bc88dfcc51f395a8577c35de5c58.tar.bz2 argaze-7fcd45338629bc88dfcc51f395a8577c35de5c58.tar.xz |
Copying and testing children classes only.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/AreaOfInterest/AOIFeatures.py | 4 |
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) |