Skip to content

Commit

Permalink
rerun: misc fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 4, 2024
1 parent 8f9b165 commit 54cd2a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/rerun/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
NUM_CPUS = multiprocessing.cpu_count()
DEMO_ROUTE = "a2a0ccea32023010|2023-07-27--13-01-19"
RR_TIMELINE_NAME = "Timeline"
RR_WIN = "rerun_test"
RR_WIN = "openpilot logs"


"""
Expand Down Expand Up @@ -144,10 +144,10 @@ def load_data(self):
parser = argparse.ArgumentParser(description="A helper to run rerun on openpilot routes",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--demo", action="store_true", help="Use the demo route instead of providing one")
parser.add_argument("--qcam", action="store_true", help="Log decimated driving camera")
parser.add_argument("--fcam", action="store_true", help="Log driving camera")
parser.add_argument("--ecam", action="store_true", help="Log wide camera")
parser.add_argument("--dcam", action="store_true", help="Log driver monitoring camera")
parser.add_argument("--qcam", action="store_true", help="Show low-res road camera")
parser.add_argument("--fcam", action="store_true", help="Show driving camera")
parser.add_argument("--ecam", action="store_true", help="Show wide camera")
parser.add_argument("--dcam", action="store_true", help="Show driver monitoring camera")
parser.add_argument("--print_services", action="store_true", help="List out openpilot services")
parser.add_argument("--services", default=[], nargs='*', help="Specify openpilot services that will be logged.\
No service will be logged if not specified.\
Expand All @@ -173,7 +173,7 @@ def load_data(self):
print("You're requesting more than 10 segments of the route, " + \
"please be aware that might take a lot of memory")
response = input("Do you wish to continue? (Y/n): ")
if response.strip() != "Y":
if response.strip().lower() != "y":
sys.exit()

rerunner = Rerunner(r, sr, camera_config, args.services)
Expand Down

0 comments on commit 54cd2a6

Please sign in to comment.