Skip to content

Commit

Permalink
timing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 16, 2021
1 parent 562503c commit 724fbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/test/test_onroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def test_timings(self):
result += f"{s} - failed RSD timing check\n"
passed = False

result += f"{s}: {np.array([np.mean(ts), np.max(ts), np.min(ts)])*1e3}\n"
result += f" {np.max(np.absolute([np.max(ts)/dt, np.min(ts)/dt]))} {np.std(ts)/dt}\n"
result += f"{s.ljust(40)}: {np.array([np.mean(ts), np.max(ts), np.min(ts)])*1e3}\n"
result += f"{''.ljust(40)} {np.max(np.absolute([np.max(ts)/dt, np.min(ts)/dt]))} {np.std(ts)/dt}\n"
result += "="*67
print(result)
self.assertTrue(passed)
Expand Down

0 comments on commit 724fbc1

Please sign in to comment.