Skip to content

Commit

Permalink
trying to unsderstand why the car play fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Apr 22, 2020
1 parent fe52312 commit 4d5764d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/test/process_replay/compare_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def remove_ignored_fields(msg, ignore):
def compare_logs(log1, log2, ignore_fields=[], ignore_msgs=[]):
filter_msgs = lambda m: m.which() not in ignore_msgs
log1, log2 = [list(filter(filter_msgs, log)) for log in (log1, log2)]
print("Log 1:",log1)
print("Log 2:", log2)
assert len(log1) == len(log2), "logs are not same length: " + str(len(log1)) + " VS " + str(len(log2))

diff = []
Expand Down

0 comments on commit 4d5764d

Please sign in to comment.