Skip to content

Commit

Permalink
Fix: no DataNotLoadedError for car_/pos_data
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Aug 26, 2022
1 parent 949de47 commit 4688ab4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fastf1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ def __init__(self, event, session_name, f1_api_support=False):

self._session_start_time: pd.Timedelta

self._car_data = dict()
self._pos_data = dict()
self._car_data: dict
self._pos_data: dict

self._weather_data: pd.DataFrame
self._results: SessionResults
Expand Down Expand Up @@ -1732,6 +1732,9 @@ def _load_telemetry(self, livedata=None):

self._calculate_t0_date(car_data, pos_data)

self._car_data = dict()
self._pos_data = dict()

for drv in self.drivers:
try:
# drop and recalculate time stamps based on 'Date', because 'Date' has a higher resolution
Expand Down

0 comments on commit 4688ab4

Please sign in to comment.