setattr(Test_graphers_analyzers, test_func_name, test_func)
list_graphers = timeside.core.processor.processors(timeside.core.api.IGrapher)
-module = 'timeside.plugins.grapher.render_analyzers'
+from timeside.core.grapher import DisplayAnalyzer
grapher_analyzers = [grapher for grapher in list_graphers
- if grapher.__module__ == module]
+ if grapher.__base__ == DisplayAnalyzer]
+
_tests_factory(grapher_analyzers)
if __name__ == '__main__':
grapher_id=None, grapher_name=None,
background=None, staging=False):
+ if analyzer_parameters is None:
+ analyzer_parameters = {}
+
class NewGrapher(cls):
_id = grapher_id
__doc__ = """Image representing """ + grapher_name
- NewGrapher.__name__ = 'Display' + '.' + result_id
+ NewGrapher.__name__ = grapher_name
return NewGrapher