From 47e6378ad2b5862905a04b8f986404918a3c2a00 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 20 Oct 2020 14:55:35 +0200 Subject: analyze-archive: note that --plot-traces has a wrong X-axis on !MIMOSA --- bin/analyze-archive.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index ca36745..bd1c824 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -223,14 +223,13 @@ def print_html_model_data(model, pm, pq, lm, lq, am, ai, aq): print("") print("") + def plot_traces(preprocessed_data, sot_name): traces = list() for trace in preprocessed_data: for state_or_transition in trace["trace"]: if state_or_transition["name"] == sot_name: - traces.extend( - map(lambda x: x["uW"], state_or_transition["offline"]) - ) + traces.extend(map(lambda x: x["uW"], state_or_transition["offline"])) if len(traces) == 0: print( f"""Did not find traces for state or transition {sot_name}. Abort.""", @@ -250,6 +249,7 @@ def plot_traces(preprocessed_data, sot_name): family=True, ) + if __name__ == "__main__": ignored_trace_indexes = [] @@ -295,7 +295,7 @@ if __name__ == "__main__": "--plot-traces", metavar="NAME", type=str, - help="Plot power trace for state or transition NAME", + help="Plot power trace for state or transition NAME. X axis is wrong for non-MIMOSA measurements", ) parser.add_argument( "--show-models", -- cgit v1.2.3