LogReader: use file name constants (#35765)

use common
check-accel^2
Shane Smiskol 4 days ago committed by GitHub
parent e1fa04b678
commit ffc8ea5a86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      tools/lib/logreader.py

@ -21,7 +21,7 @@ from openpilot.common.swaglog import cloudlog
from openpilot.tools.lib.comma_car_segments import get_url as get_comma_segments_url
from openpilot.tools.lib.openpilotci import get_url
from openpilot.tools.lib.filereader import DATA_ENDPOINT, FileReader, file_exists, internal_source_available
from openpilot.tools.lib.route import Route, SegmentRange
from openpilot.tools.lib.route import QCAMERA_FILENAMES, CAMERA_FILENAMES, DCAMERA_FILENAMES, ECAMERA_FILENAMES, Route, SegmentRange
from openpilot.tools.lib.log_time_series import msgs_to_time_series
LogMessage = type[capnp._DynamicStructReader]
@ -104,10 +104,10 @@ class ReadMode(enum.StrEnum):
class FileName(enum.Enum):
RLOG = ("rlog.zst", "rlog.bz2")
QLOG = ("qlog.zst", "qlog.bz2")
QCAMERA = ("qcamera.ts",)
FCAMERA = ("fcamera.hevc",)
ECAMERA = ("ecamera.hevc",)
DCAMERA = ("dcamera.hevc",)
QCAMERA = tuple(QCAMERA_FILENAMES)
FCAMERA = tuple(CAMERA_FILENAMES)
ECAMERA = tuple(ECAMERA_FILENAMES)
DCAMERA = tuple(DCAMERA_FILENAMES)
LogPath = str | None

Loading…
Cancel
Save