Skip to content

Commit

Permalink
fix extract bus logging in the batch view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Nov 20, 2024
1 parent 5668512 commit 4cc1852
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/asammdf/gui/widgets/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ def extract_bus_logging_finished(self):
message = self._progress.result

self.output_info_bus.setPlainText("\n".join(message))

self._progress.close()
self._progress = None

def extract_bus_logging(self, event):
Expand Down Expand Up @@ -386,10 +384,12 @@ def extract_bus_logging_thread(self, source_files, database_files, count, compre
]
for dbc_name, found_ids in call_info["found_ids"].items():
for msg_id, msg_name in sorted(found_ids):
try:
message.append(f"- 0x{msg_id:X} --> {msg_name} in <{dbc_name}>")
except:
pgn, sa = msg_id
if not msg_id[2]:
msg_id, extended = msg_id[:2]
message.append(f"- 0x{msg_id:X} {extended=} --> {msg_name} in <{dbc_name}>")

else:
pgn, sa = msg_id[:2]
message.append(f"- PGN=0x{pgn:X} SA=0x{sa:X} --> {msg_name} in <{dbc_name}>")

message += [
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" asammdf version module """

__version__ = "8.1.0.dev2"
__version__ = "8.1.0.dev3"

0 comments on commit 4cc1852

Please sign in to comment.