Remove unnecessary doctest comments from test/get_curve.py
[hooke.git] / hooke / plugin / __init__.py
index 8e77f2fd90f834c1d49fec30aaf7e471acbd5139..63f17a34bf6f028cfc99b3a6ec689dd2bdb4f347 100644 (file)
@@ -34,15 +34,14 @@ PLUGIN_MODULES = [
     ('convfilt', True),
     ('cut', True),
 #    ('fclamp', True),
-#    ('fit', True),
 #    ('flatfilts-rolf', True),
     ('flatfilt', True),
 #    ('jumpstat', True),
-#    ('macro', True),
 #    ('massanalysis', True),
 #    ('multidistance', True),
 #    ('multifit', True),
 #    ('pcluster', True),
+    ('polymer_fit', True),
 #    ('procplots', True),
 #    ('review', True),
 #    ('showconvoluted', True),
@@ -59,6 +58,7 @@ BUILTIN_MODULES = [
     'config',
     'curve',
     'debug',
+    'engine',
     'license',
     'note',
     'playlist',
@@ -170,6 +170,7 @@ def default_settings():
 def load_graph(graph, config, include_section):
     enabled = {}
     items = []
+    conditions = config.items('conditions')
     for node in graph:
         item = node.data
         try:
@@ -189,6 +190,9 @@ def load_graph(graph, config, include_section):
             try:
                 item.config = dict(config.items(item.setting_section))
             except configparser.NoSectionError:
-                pass
+                item.config = {}
+            for key,value in conditions:
+                if key not in item.config:
+                    item.config[key] = value
             items.append(item)
     return items