aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/DataFeatures.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/argaze/DataFeatures.py b/src/argaze/DataFeatures.py
index a3b7034..6c77c37 100644
--- a/src/argaze/DataFeatures.py
+++ b/src/argaze/DataFeatures.py
@@ -503,6 +503,13 @@ class PipelineStepObject():
new_observers = observer_module.__observers__
+ # dict: instanciate ready-made argaze observers
+ elif type(new_observers_value) == dict:
+
+ for observer_type, observer_data in new_observers_value.items():
+
+ new_observers[observer_type] = eval(f'{observer_type}(**observer_data)')
+
except KeyError:
pass