mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 12:23:53 +08:00
* agnos 8
* update to python 3.11.4 (#27452)
* rebase
* optional
* lower cython
* TEMP don't pull cl to use python3.11
* Revert "lower cython"
This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.
* fix cython
* remove tensorrt
* carla + opencv
* macos
* update timm and smp
* pynvc
* https
* downgrade numpy
* pin scipy
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
* revert that
* fix linter
---------
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
old-commit-hash: 1945c356c2
32 lines
1.1 KiB
Python
Executable File
32 lines
1.1 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
|
|
from selfdrive.test.process_replay.process_replay import CONFIGS, replay_process
|
|
from tools.lib.logreader import MultiLogIterator
|
|
from tools.lib.route import Route
|
|
from tools.lib.helpers import save_log
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="Run process on route and create new logs",
|
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
|
parser.add_argument("route", help="The route name to use")
|
|
parser.add_argument("process", help="The process to run")
|
|
args = parser.parse_args()
|
|
|
|
cfg = [c for c in CONFIGS if c.proc_name == args.process][0]
|
|
|
|
route = Route(args.route)
|
|
lr = MultiLogIterator(route.log_paths())
|
|
inputs = list(lr)
|
|
|
|
outputs = replay_process(cfg, inputs)
|
|
|
|
# Remove message generated by the process under test and merge in the new messages
|
|
produces = {o.which() for o in outputs}
|
|
inputs = [i for i in inputs if i.which() not in produces]
|
|
outputs = sorted(inputs + outputs, key=lambda x: x.logMonoTime)
|
|
|
|
fn = f"{args.route}_{args.process}.bz2"
|
|
save_log(fn, outputs)
|