mirror of https://github.com/commaai/openpilot.git
SegmentRange: remove timestamp (#32750)
* add deprecation warning
* remove timestamp
* Update logreader.py
old-commit-hash: d5ce4b3085
This commit is contained in:
parent
cd8d440c86
commit
8f402f29a3
|
@ -135,7 +135,7 @@ def internal_source(sr: SegmentRange, mode: ReadMode) -> LogPaths:
|
|||
raise InternalUnavailableException
|
||||
|
||||
def get_internal_url(sr: SegmentRange, seg, file):
|
||||
return f"cd:/{sr.dongle_id}/{sr.timestamp}/{seg}/{file}.bz2"
|
||||
return f"cd:/{sr.dongle_id}/{sr.log_id}/{seg}/{file}.bz2"
|
||||
|
||||
rlog_paths = [get_internal_url(sr, seg, "rlog") for seg in sr.seg_idxs]
|
||||
qlog_paths = [get_internal_url(sr, seg, "qlog") for seg in sr.seg_idxs]
|
||||
|
|
|
@ -260,10 +260,6 @@ class SegmentRange:
|
|||
def dongle_id(self) -> str:
|
||||
return self.m.group("dongle_id")
|
||||
|
||||
@property
|
||||
def timestamp(self) -> str:
|
||||
return self.m.group("timestamp")
|
||||
|
||||
@property
|
||||
def log_id(self) -> str:
|
||||
return self.m.group("log_id")
|
||||
|
|
Loading…
Reference in New Issue