From 51cc485c19cc77dd9d89c27bf54ae7bc8eba9eda Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 2 Nov 2020 14:17:35 +0100 Subject: EnergyTrace: Correctly set "power_traces" --- lib/loader.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/loader.py') diff --git a/lib/loader.py b/lib/loader.py index 1d268bc..fff515f 100644 --- a/lib/loader.py +++ b/lib/loader.py @@ -753,6 +753,9 @@ class RawData: "paramkeys": list(), "param": list(), } + if "plot" in offline_trace_part: + online_trace_part["offline_support"] = ["power_traces"] + online_trace_part["offline_aggregates"]["power_traces"] = list() offline_aggregates = online_trace_part["offline_aggregates"] @@ -770,6 +773,9 @@ class RawData: offline_aggregates["paramkeys"].append(paramkeys) offline_aggregates["param"].append(paramvalues) + if "plot" in offline_trace_part: + offline_aggregates["power_traces"].append(offline_trace_part["plot"][1]) + # if online_trace_part['isa'] == 'transition': # offline_aggregates['rel_energy_prev'].append(offline_trace_part['W_mean_delta_prev'] * offline_trace_part['s'] * 1e12) # offline_aggregates['rel_energy_next'].append(offline_trace_part['W_mean_delta_next'] * offline_trace_part['s'] * 1e12) -- cgit v1.2.3