Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Habib <[email protected]>
  • Loading branch information
clefourrier and NathanHB authored Jul 9, 2024
1 parent 48c3857 commit da0e812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lighteval/logging/evaluation_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def recreate_metadata_card(self, repo_id: str) -> None: # noqa: C901
# to be able to parse the filename as iso dates, we need to re-replace the `-` with `:`
# iso_date[13] = iso_date[16] = ':'
dir_name = os.path.dirname(sub_file)
iso_date = dir_name[:13] + ":" + dir_name[14:16] + ":" + dir_name[17:]
iso_date = ':'.join(dir_name.rsplit('-', 2))
eval_date = datetime.fromisoformat(iso_date)

last_eval_date_results[task_name] = (
Expand Down

0 comments on commit da0e812

Please sign in to comment.