Skip to content

Commit

Permalink
WIPpython
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-raillard-arm committed Jan 10, 2024
1 parent 0bbbdea commit 7578176
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lisa/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -4254,15 +4254,13 @@ def _df_event(self, event, raw, window, signals, signals_init, compress_signals_
cache_desc = _CacheDataDesc(spec=spec, fmt=TraceCache.DATAFRAME_SWAP_FORMAT)

try:
df = self._cache.fetch(cache_desc, insert=True)
except KeyError:
df = self._load_df(cache_desc, sanitization_f=sanitization_f, write_swap=write_swap)

if df.empty:
raise MissingTraceEventError(
[event],
available_events=self.available_events,
)
try:
df = self._cache.fetch(cache_desc, insert=True)
except KeyError:
df = self._load_df(cache_desc, sanitization_f=sanitization_f, write_swap=write_swap)
except MissingTraceEventError as e:
e.available_events = self.available_events
raise e

# We used to set a ".name" attribute, but:
# 1. There is no central way of saving these metadata when serializing
Expand Down

0 comments on commit 7578176

Please sign in to comment.