From 352dd3f9d2f2f300733f8562b28c1aeece7e2443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 20 Jun 2023 12:10:00 +0200 Subject: [PATCH] statistics plots: disable Flight Report Logs for now There's a number of issues: - plotting is getting slow and times out (a single plot takes ~15s). Would need to be analyzed which part is slow exactly. - version numbers (x axis labels) overlap - there's not much flight testing done --- app/plot_app/main.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/app/plot_app/main.py b/app/plot_app/main.py index 2201612b3..84f29913a 100644 --- a/app/plot_app/main.py +++ b/app/plot_app/main.py @@ -51,27 +51,27 @@ (statistics.num_logs_ci(), statistics.num_logs_total())) plots.append(column(div_info)) - div = Div(text="

Flight Report Logs " - "(Public Logs only)

") - div_info = Div(text="Total Flight Hours over all versions: %.1f"% - statistics.total_public_flight_duration()) - div_info_release = Div(text="Total Flight Hours for the latest major" \ - " release %s (starting from the first RC candidate): %.1f"% - (statistics.latest_major_release()+'.x', - statistics.total_public_flight_duration_latest_release())) - plots.append(column([div, div_info, div_info_release])) - - p = statistics.plot_public_airframe_statistics() - plots.append(p) - - p = statistics.plot_public_boards_statistics() - plots.append(p) - - p = statistics.plot_public_boards_num_flights_statistics() - plots.append(p) - - p = statistics.plot_public_flight_mode_statistics() - plots.append(p) + # div = Div(text="

Flight Report Logs " + # "(Public Logs only)

") + # div_info = Div(text="Total Flight Hours over all versions: %.1f"% + # statistics.total_public_flight_duration()) + # div_info_release = Div(text="Total Flight Hours for the latest major" \ + # " release %s (starting from the first RC candidate): %.1f"% + # (statistics.latest_major_release()+'.x', + # statistics.total_public_flight_duration_latest_release())) + # plots.append(column([div, div_info, div_info_release])) + # + # p = statistics.plot_public_airframe_statistics() + # plots.append(p) + # + # p = statistics.plot_public_boards_statistics() + # plots.append(p) + # + # p = statistics.plot_public_boards_num_flights_statistics() + # plots.append(p) + # + # p = statistics.plot_public_flight_mode_statistics() + # plots.append(p) # TODO: add a rating pie chart (something like # http://bokeh.pydata.org/en/latest/docs/gallery/donut_chart.html ?)