process replay: remove sorting before comparison (#29072)

* process replay: remove sorting before comparison

* keep ignore msgs
pull/28843/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 0faab606b0
commit 716d0d5918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/test/process_replay/compare_logs.py

@ -60,7 +60,7 @@ def compare_logs(log1, log2, ignore_fields=None, ignore_msgs=None, tolerance=Non
default_tolerance = EPSILON if tolerance is None else tolerance
log1, log2 = (
sorted((m for m in log if m.which() not in ignore_msgs), key=lambda m: (m.logMonoTime, m.which()))
[m for m in log if m.which() not in ignore_msgs]
for log in (log1, log2)
)

Loading…
Cancel
Save