Skip to content

Commit

Permalink
pdflike
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Sep 11, 2024
1 parent d4521ce commit 6d4af1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/longitudinal_maneuvers/generate_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from openpilot.tools.lib.logreader import LogReader
from openpilot.system.hardware.hw import Paths
from weasyprint import HTML


def report(platform, maneuvers):
Expand Down Expand Up @@ -79,6 +80,7 @@ def report(platform, maneuvers):
f.write("</details>\n")

print(f"\nReport written to {output_fn}\n")
HTML(output_fn).write_pdf(output_fn.with_suffix('.pdf'))


if __name__ == '__main__':
Expand Down

0 comments on commit 6d4af1b

Please sign in to comment.