aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/ArFeatures.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index 3d4bf87..c7b9342 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -195,6 +195,12 @@ class ArLayer():
# Add AOI 2D Scene by default
new_aoi_scene = AOI2DScene.AOI2DScene()
+ # Edit expected AOI list by removing AOI with name equals to layer name
+ expected_aois = list(new_aoi_scene.keys())
+
+ if new_layer_name in expected_aois:
+ expected_aois.remove(new_layer_name)
+
# Load aoi matcher
try:
@@ -213,12 +219,6 @@ class ArLayer():
new_aoi_matcher = None
- # Edit expected AOI list by removing AOI with name equals to layer name
- expected_aois = list(new_aoi_scene.keys())
-
- if new_layer_name in expected_aois:
- expected_aois.remove(new_layer_name)
-
# Load AOI scan path
try: