Skip to content

Commit a4702ae

Browse files
committed
Fix graphing issue with can_testbench
1 parent f50479f commit a4702ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

can_testbench.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# nuitka-project: --enable-plugin=pyside6
22
# nuitka-project: --disable-console
33
# nuitka-project: --standalone
4-
# nuitka-project: --follow-imports
54
# nuitka-project: --include-module=can.interfaces.slcan
65
# nuitka-project: --include-module=can.interfaces.udp_multicast
76
# nuitka-project-if: {OS} == "Darwin":
@@ -1529,7 +1528,7 @@ def onSignalGraphedChanged(self, msg: DbcMessage, row: int, graphed: bool, stopG
15291528
# Create the plot with custom legends
15301529
msg.graph = px.line(df_long, x="timestamps", y="Value", color="Signal", title=msg.message.name)
15311530
self.graphs[msg.message.name] = msg.graph
1532-
logging.INFO(msg.graph)
1531+
logging.debug(msg.graph)
15331532
msg.graph.show()
15341533
else:
15351534
if msg.graph is not None:
@@ -1749,7 +1748,7 @@ def setupLaunchTab(self):
17491748
self.openDbc()
17501749

17511750
def errorDialog(self, error):
1752-
logging.ERROR(error)
1751+
logging.error(error)
17531752
messageBox = QMessageBox()
17541753
messageBox.critical(self, "Error:", repr(error))
17551754
messageBox.setFixedSize(500,200)

0 commit comments

Comments
 (0)