diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-11-02 14:17:35 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-11-02 14:17:35 +0100 |
commit | 51cc485c19cc77dd9d89c27bf54ae7bc8eba9eda (patch) | |
tree | cbc0ebed443ba9581d560b5894743e6865141f99 | |
parent | c7a7b48c6739e193ba24eec4d41082271df164ce (diff) |
EnergyTrace: Correctly set "power_traces"
-rw-r--r-- | lib/loader.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |