Skip to content

Commit

Permalink
edge case writer??
Browse files Browse the repository at this point in the history
  • Loading branch information
TimotheeMathieu committed Feb 19, 2024
1 parent 5569986 commit 3633bb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rlberry/utils/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def data(self):
[df, pd.DataFrame(self._data[tag])],
ignore_index=True,
)
if df is None:
# if there are no data, return empty dataframe
df = pd.DataFrame()
return df

def set_max_global_step(self, max_global_step):
Expand Down

0 comments on commit 3633bb5

Please sign in to comment.