app.ingest.dataset

Loading traffic.csv: the unit → vehicle registry, and the pings the replay source plays back.

Functions

load_traffic(path)

Parse traffic.csv.

Classes

Traffic(pings, unit_to_tr)

class app.ingest.dataset.Traffic(pings: 'list[Ping]', unit_to_tr: 'dict[int, int]')[исходный код]

Базовые классы: object

__init__(pings: list[Ping], unit_to_tr: dict[int, int]) → None
pings: list[Ping]
unit_to_tr: dict[int, int]
app.ingest.dataset.load_traffic(path: Path) → Traffic[исходный код]

Parse traffic.csv. Rows whose unit already maps to another vehicle are skipped and logged.