longitudinal_maneuvers fix warning (#33980)

pull/33983/head
royjr 6 months ago committed by GitHub
parent 5b0994c53c
commit e243acac3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      tools/longitudinal_maneuvers/generate_report.py

@ -121,6 +121,7 @@ def report(platform, route, _description, CP, ID, maneuvers):
buffer = io.BytesIO() buffer = io.BytesIO()
fig.savefig(buffer, format='webp') fig.savefig(buffer, format='webp')
plt.close(fig)
buffer.seek(0) buffer.seek(0)
builder.append(f"<img src='data:image/webp;base64,{base64.b64encode(buffer.getvalue()).decode()}' style='width:100%; max-width:800px;'>\n") builder.append(f"<img src='data:image/webp;base64,{base64.b64encode(buffer.getvalue()).decode()}' style='width:100%; max-width:800px;'>\n")
builder.append("</details>\n") builder.append("</details>\n")

Loading…
Cancel
Save