Skip to content

Commit

Permalink
fix(io): fix summary loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Apr 10, 2024
1 parent 355d023 commit a5dd84a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/erlab/io/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,10 @@ def summarize(
if usecache:
try:
df = pandas.read_pickle(pkl_path)
df = df.head(len(df))
except FileNotFoundError:
pass

df = df.head(len(df))

if df is None:
df = self.generate_summary(data_dir, **kwargs)
df.to_pickle(pkl_path)
Expand Down

0 comments on commit a5dd84a

Please sign in to comment.