From 54084a7506c0692c8bf4dadf2cd48bf251b8d9f0 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Wed, 27 Feb 2019 09:11:05 +0100 Subject: [PATCH] Load elapsed times in gplot --- gplot.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gplot.py b/gplot.py index 2ad7b41..8b1685c 100644 --- a/gplot.py +++ b/gplot.py @@ -247,9 +247,15 @@ def print_successrate(): if __name__ == "__main__": plt.rcParams["font.size"] = 29 - r = {} - for sf in [i["f"] for i in LOG]: - r[sf] = load_trajectories("{}/{}".format(LOGF, sf)) - print_successrate() - plot_maxtime() - plot_costdist() + res = [] + for d in listdir("testlog"): + LOGF="testlog/{}".format(d) + r = {} + for sf in [i["f"] for i in LOG]: + r[sf] = load_trajectories("{}/{}".format(LOGF, sf)) + res.append({ + "f": d, + "elap": get_val_if_exist(r["T2"], "elap"), + "rrte": get_val_if_exist(r["T2"], "rrte"), + "ppse": get_val_if_exist(r["T2"], "ppse"), + }) -- 2.39.2