mirror of https://github.com/commaai/openpilot.git
longitudinal_maneuvers fix warning (#33980)
This commit is contained in:
parent
5b0994c53c
commit
e243acac3b
|
@ -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…
Reference in New Issue