IQ.Pilot Prebuilt Release @ 6dc11f9

This commit is contained in:
IQ.Lvbs CI [bot]
2026-08-12 11:06:53 -05:00
commit a772f89326
2275 changed files with 618288 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
"""
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
"""

View File

@@ -0,0 +1,25 @@
import json
import os
from iqdbc.car.common.basedir import BASEDIR
from iqdbc.lvbs.car.car_catalog import build_car_catalog
CATALOG_JSON = os.path.join(BASEDIR, "..", "..", "iqpilot", "selfdrive", "car", "vehicle_catalog.json")
_KEY_TO_ATTR = {"id": "platform", "mk": "make", "grp": "brand", "mdl": "model", "yrs": "year", "req": "package"}
def _decode(envelope) -> dict:
out = {}
for record in (envelope.get("vehicles") or {}).values():
out[record.get("label", "")] = {attr: record.get(key) for key, attr in _KEY_TO_ATTR.items()}
return out
class TestCarList:
def test_generator(self):
generated = build_car_catalog()
with open(CATALOG_JSON) as f:
shipped = _decode(json.load(f))
assert shipped == generated, "Run: python -m iqpilot.selfdrive.car.vehicle_catalog"