Files
dragonpilot/scripts/count_cars.py

12 lines
322 B
Python
Raw Normal View History

2021-03-30 14:01:58 -07:00
#!/usr/bin/env python3
2021-11-18 20:56:20 -08:00
from collections import Counter
from pprint import pprint
2024-03-17 19:53:57 -04:00
from openpilot.selfdrive.car.docs import get_all_car_docs
2021-03-30 14:01:58 -07:00
if __name__ == "__main__":
2024-03-17 19:53:57 -04:00
cars = get_all_car_docs()
make_count = Counter(l.make for l in cars)
print("\n", "*" * 20, len(cars), "total", "*" * 20, "\n")
2021-11-18 20:56:20 -08:00
pprint(make_count)