From aeaf802768d14cffafad20ca4627e112db5f9bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Mon, 12 Feb 2024 18:17:49 +0100 Subject: [PATCH] check for keylength and not presence of one specific key in the qdp plotter for determining whether to merge times for scan b and scan a --- qdp_project/plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdp_project/plotter.py b/qdp_project/plotter.py index 67fc01a..99089b0 100644 --- a/qdp_project/plotter.py +++ b/qdp_project/plotter.py @@ -31,7 +31,7 @@ def read_timings_from_csv(fname, fn_nice) -> tuple[list[float], list[str]]: t = {key: value / (1000 * 1000 * row_count) for key, value in t.items() if value != 0} - if fn_nice[2] in t.keys(): + if len(t.keys()) == 3: t[fn_nice[1]] = t[fn_nice[1]] - t[fn_nice[2]] return list(t.values()), list(t.keys())