nopenpilot/selfdrive/debug
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
..
internal Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
profiling perfetto (#22998) 2021-11-22 14:03:42 -08:00
README.md add some docs for selfdrive/debug 2021-10-12 20:17:12 -07:00
__init__.py selfdrive/debug 2020-01-17 11:23:21 -08:00
adb.sh adb over smays 2020-12-12 19:21:45 -08:00
can_print_changes.py Script to print new bitflips on CAN (#21294) 2021-06-16 15:46:34 +02:00
can_printer.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
check_freq.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
check_lag.py Run mypy commit hook (#1591) 2020-05-28 15:05:04 -07:00
check_timings.py tici: affine loggerd to efficiency cores (#22581) 2021-10-18 13:21:24 -07:00
compare_fingerprints.py Update Flake8 config (#1624) 2020-06-03 16:13:34 -07:00
count_events.py count_events: handle missing logs 2021-10-25 10:25:23 -07:00
cpu_usage_stat.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
cycle_alerts.py alerts: escalate soft disable alert near disengagement (#23198) 2021-12-11 17:07:37 -08:00
disable_ecu.py Hyundai longitudinal prerequisites (#22121) 2021-09-13 22:03:08 -07:00
dump.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
filter_log_message.py RobustLogReader that can recover corrupted bz2 files (#22835) 2021-11-10 16:41:00 +01:00
fingerprint_from_route.py Update script usage (#19571) 2020-12-21 13:11:59 -08:00
get_fingerprint.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
hyundai_enable_radar_points.py Genesis G70 2020 port (#22692) 2021-11-18 20:45:32 -08:00
live_cpu_and_temp.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
run_process_on_route.py Add script to rerun process on route and generate new logs (#22100) 2021-09-01 14:48:41 -07:00
set_car_params.py fix car params setter script 2021-06-01 20:59:03 -07:00
show_matching_cars.py Update CI tests for CAN fingerprinting deprecation (#21043) 2021-05-26 14:02:42 -07:00
test_fw_query_on_routes.py Make pandaState and safetyMode a list (#22454) 2021-10-08 17:54:34 +02:00
toyota_eps_factor.py Fix toyota_eps_factor.py script (#2647) 2020-11-28 22:36:51 -08:00
uiview.py set pandaType in debug scripts (#22897) 2021-11-13 11:54:29 -08:00

README.md

debug scripts

can_printer.py

usage: can_printer.py [-h] [--bus BUS] [--max_msg MAX_MSG] [--addr ADDR]

simple CAN data viewer

optional arguments:
  -h, --help         show this help message and exit
  --bus BUS          CAN bus to print out (default: 0)
  --max_msg MAX_MSG  max addr (default: None)
  --addr ADDR

dump.py

usage: dump.py [-h] [--pipe] [--raw] [--json] [--dump-json] [--no-print] [--addr ADDR] [--values VALUES] [socket [socket ...]]

Dump communcation sockets. See cereal/services.py for a complete list of available sockets.

positional arguments:
  socket           socket names to dump. defaults to all services defined in cereal

optional arguments:
  -h, --help       show this help message and exit
  --pipe
  --raw
  --json
  --dump-json
  --no-print
  --addr ADDR
  --values VALUES  values to monitor (instead of entire event)