summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-20 14:55:35 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-20 14:55:35 +0200
commit47e6378ad2b5862905a04b8f986404918a3c2a00 (patch)
tree644d93ebca6be42185d2cd39e175a73fdba08921
parent7933d189e7aa6d1dfe857e1fd1bba70147380747 (diff)
analyze-archive: note that --plot-traces has a wrong X-axis on !MIMOSA
-rwxr-xr-xbin/analyze-archive.py8
1 files 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("</tr>")
print("</table>")
+
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",