Commit Graph

9 Commits (master)

Author SHA1 Message Date
Ewout ter Hoeven 55390d273f
Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh c4e9f4de99 fix live_cpu_and_temp.py for c3 2021-09-13 20:27:53 -07:00
Adeeb Shihadeh 312b681a46
cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65eb.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh 229395e15b fix static analysis checks after mypy update 2021-01-30 16:53:48 -08:00
Willem Melching 47dfa52456
use iterator to loop over first 1000 entries (#2359) 2020-10-19 13:44:36 +02:00
Willem Melching af742a8c15 live_cpu_and_temp flag to show cpu usgage per process 2020-03-12 16:40:30 -07:00
Willem Melching 3fef70f0d5 add mem flag to live cpu and temp script 2020-02-13 15:07:03 -08:00
Willem Melching c9501cc164 Also show top 10 procs by RAM usage 2020-01-30 14:17:09 -08:00
George Hotz f467642a1c selfdrive/debug 2020-01-17 11:23:21 -08:00