Skip to content

Commit

Permalink
made logging length check more flexible, don't assume train/episode_m…
Browse files Browse the repository at this point in the history
…ean key anymore
  • Loading branch information
P-Schumacher authored and Pierre Schumacher committed Mar 13, 2024
1 parent e21b4c4 commit 9e2e63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deprl/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, path):
self._setup_wandb()

def get_line_number(self, data):
return len(data["train/episode_score/mean"])
return len(data[[key for key in data.keys()][0]])

def _setup_wandb(self):
data = utils.load_csv_to_dict(self._path)
Expand Down

0 comments on commit 9e2e63a

Please sign in to comment.