mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-15 13:23:51 +08:00
openpilot v0.8.12 release
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
class lazy_property(object):
|
||||
"""Defines a property whose value will be computed only once and as needed.
|
||||
|
||||
This can only be used on instance methods.
|
||||
"""
|
||||
def __init__(self, func):
|
||||
self._func = func
|
||||
|
||||
def __get__(self, obj_self, cls):
|
||||
value = self._func(obj_self)
|
||||
setattr(obj_self, self._func.__name__, value)
|
||||
return value
|
||||
@@ -13,7 +13,7 @@ from cereal import log as capnp_log
|
||||
|
||||
# this is an iterator itself, and uses private variables from LogReader
|
||||
class MultiLogIterator(object):
|
||||
def __init__(self, log_paths, wraparound=True):
|
||||
def __init__(self, log_paths, wraparound=False):
|
||||
self._log_paths = log_paths
|
||||
self._wraparound = wraparound
|
||||
|
||||
@@ -26,7 +26,6 @@ class MultiLogIterator(object):
|
||||
def _log_reader(self, i):
|
||||
if self._log_readers[i] is None and self._log_paths[i] is not None:
|
||||
log_path = self._log_paths[i]
|
||||
print("LogReader:%s" % log_path)
|
||||
self._log_readers[i] = LogReader(log_path)
|
||||
|
||||
return self._log_readers[i]
|
||||
|
||||
Reference in New Issue
Block a user