Logo
Explore Help
Register Sign In
mawei/sunnypilot
1
0
Fork 0
You've already forked sunnypilot
mirror of https://github.com/sunnypilot/sunnypilot.git synced 2026-02-20 19:33:54 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
1e3bb5be7ec3cd00a2ff8c8a7bc02b8efbf1cddc
sunnypilot/selfdrive/debug/dump_car_info.py

19 lines
406 B
Python
Raw Normal View History

compatibility docs: print diff from PR (#24941) * print docs diff * revert car changes * cause a diff * temp so it works * text diff * tier inline is a bit too much * comments * fix * use paths * fix * temp * temp * diff * fix * remove something * more text diff * Delete comment if outdated * Smaller diff * remove * no diff * Don't try to run on fork PRs * cause some errors * Fix * Fix * Doesn't support env in job if, only step if * in case file was moved, don't throw error * See if this does what I think it does * See if this does what I think it does * should work * change something * revert * uncomment * no comment * this shouldn't fail * rename to base * Remove true * Remove other true
2022-07-12 18:58:46 -07:00
#!/usr/bin/env python3
import argparse
import pickle
from selfdrive.car.docs import get_all_car_info
def dump_car_info(path):
with open(path, 'wb') as f:
pickle.dump(get_all_car_info(), f)
print(f'Dumping car info to {path}')
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--path", required=True)
args = parser.parse_args()
dump_car_info(args.path)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 90ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API