From 0d0e6191a8568c68bc189e527f3f9db0242fe350 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Fri, 26 Jan 2024 13:20:25 -0800 Subject: [PATCH] commaCarSegments cleanup (#31182) * cleanup * no space old-commit-hash: 9518b66c9e49f744591f8da858b201342a8c096d --- tools/lib/comma_car_segments.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/lib/comma_car_segments.py b/tools/lib/comma_car_segments.py index 995b26d8e6..9027fec637 100644 --- a/tools/lib/comma_car_segments.py +++ b/tools/lib/comma_car_segments.py @@ -4,14 +4,13 @@ import requests # Forks with additional car support can fork the commaCarSegments repo on huggingface or host the LFS files themselves COMMA_CAR_SEGMENTS_REPO = os.environ.get("COMMA_CAR_SEGMENTS_REPO", "https://huggingface.co/datasets/commaai/commaCarSegments") COMMA_CAR_SEGMENTS_BRANCH = os.environ.get("COMMA_CAR_SEGMENTS_BRANCH", "main") - -COMMA_CAR_SEGMENTS_LFS_INSTANCE = os.environ.get("COMMA_CAR_SEGMENTS_LFS_INSTANCE", "https://huggingface.co/datasets/commaai/commaCarSegments") +COMMA_CAR_SEGMENTS_LFS_INSTANCE = os.environ.get("COMMA_CAR_SEGMENTS_LFS_INSTANCE", COMMA_CAR_SEGMENTS_REPO) def get_comma_car_segments_database(): return requests.get(get_repo_raw_url("database.json")).json() -# Helpers related to interfacing with the openpilot-data repository, which contains a collection of public segments for users to perform validation on. +# Helpers related to interfacing with the commaCarSegments repository, which contains a collection of public segments for users to perform validation on. def parse_lfs_pointer(text): header, lfs_version = text.splitlines()[0].split(" ")