File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 1010from openpilot .tools .lib .logreader import LogReader , ReadMode
1111
1212if __name__ == "__main__" :
13- cnt_valid : Counter = Counter ()
1413 cnt_events : Counter = Counter ()
1514
1615 cams = [s for s in SERVICE_LIST if s .endswith ('CameraState' )]
4847 elif msg .which () in cams :
4948 cnt_cameras [msg .which ()] += 1
5049
51- if not msg .valid :
52- cnt_valid [msg .which ()] += 1
53-
5450 duration = (end_time - start_time ) / 1e9
5551
5652 print ("Events" )
5753 pprint (cnt_events )
5854
5955 print ("\n " )
60- print ("Not valid" )
61- pprint (cnt_valid )
56+ print ("Events" )
57+ for t , evt in events :
58+ print (f"{ t :8.2f} { evt } " )
6259
6360 print ("\n " )
6461 print ("Cameras" )
7269 for t , a in alerts :
7370 print (f"{ t :8.2f} { a } " )
7471
75- print ("\n " )
76- print ("Events" )
77- for t , evt in events :
78- print (f"{ t :8.2f} { evt } " )
79-
8072 print ("\n " )
8173 if ignition_off is not None :
8274 ignition_off = round ((ignition_off - start_time ) / 1e9 , 2 )
You can’t perform that action at this time.
0 commit comments