Skip to content

Commit

Permalink
statistics plots: disable Flight Report Logs for now
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bkueng committed Jun 20, 2023
1 parent adfc6a9 commit 352dd3f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions app/plot_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,27 @@
(statistics.num_logs_ci(), statistics.num_logs_total()))
plots.append(column(div_info))

div = Div(text="<br/><h4>Flight Report Logs "
"<small class='text-muted'>(Public Logs only)</small></h4>")
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="<br/><h4>Flight Report Logs "
# "<small class='text-muted'>(Public Logs only)</small></h4>")
# 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 ?)
Expand Down

0 comments on commit 352dd3f

Please sign in to comment.