|
|
|
@ -21,6 +21,7 @@ from openpilot.tools.lib.comma_car_segments import get_url as get_comma_segments |
|
|
|
|
from openpilot.tools.lib.openpilotci import get_url |
|
|
|
|
from openpilot.tools.lib.filereader import FileReader, file_exists, internal_source_available |
|
|
|
|
from openpilot.tools.lib.route import Route, SegmentRange |
|
|
|
|
from openpilot.tools.lib.log_time_series import msgs_to_time_series |
|
|
|
|
|
|
|
|
|
LogMessage = type[capnp._DynamicStructReader] |
|
|
|
|
LogIterable = Iterable[LogMessage] |
|
|
|
@ -322,6 +323,9 @@ class LogReader: |
|
|
|
|
def first(self, msg_type: str): |
|
|
|
|
return next(self.filter(msg_type), None) |
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
def time_series(self): |
|
|
|
|
return msgs_to_time_series(self) |
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
import codecs |
|
|
|
|