From c7a7b48c6739e193ba24eec4d41082271df164ce Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 2 Nov 2020 13:28:40 +0100 Subject: Simplify PELT usage. remove kneedle, refactor code --- bin/analyze-archive.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index fec5620..eca98c4 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -250,12 +250,7 @@ def plot_traces(preprocessed_data, sot_name): traces = [traces[i] for i in indexes] plotter.plot_xy( - timestamps, - traces, - xlabel="t [s]", - ylabel="P [W]", - title=sot_name, - family=True, + timestamps, traces, xlabel="t [s]", ylabel="P [W]", title=sot_name, family=True ) @@ -495,7 +490,10 @@ if __name__ == "__main__": if args.with_substates != "": for kv in args.with_substates.split(","): k, v = kv.split("=") - arg_dict[k] = v + try: + arg_dict[k] = float(v) + except ValueError: + arg_dict[k] = v args.with_substates = arg_dict if args.plot_traces: -- cgit v1.2.3