From 436a3d3eaebcca11d8da6d8b1bb4f6f543e135e4 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 18 Oct 2023 23:55:21 +0200 Subject: implemented aggreator --- run.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'run.py') diff --git a/run.py b/run.py index de6a078..fa0f598 100755 --- a/run.py +++ b/run.py @@ -26,6 +26,19 @@ for plotter in conf['plotter']: modname = plotter['module'] del plotter['module'] + if 'aggregator' in plotter: + aggname = plotter['aggregator'] + del plotter['aggregator'] + aggconf = conf['aggregator'][aggname] + classname = aggconf['module'] + # We should prbly not delete it like in the plotter, since it is not a deepcopy + # and may be used again. + + agg = __import__(classname, fromlist=[None]) + + # TODO: figure out a way to use **aggconf instead. + plotter['data'] = agg.load_data(aggname, aggconf) + mod = __import__(modname, fromlist=[None]) index.extend(mod.run(**plotter)) -- cgit v1.2.3