Skip to content

Commit

Permalink
🔄 synced local 'tools/submission/power/power_checker.py' with remote …
Browse files Browse the repository at this point in the history
…'compliance/check.py' (mlcommons#1587)

Co-authored-by: mlcommons-bot <null>
  • Loading branch information
mlcommons-bot committed Jan 26, 2024
1 parent 180014a commit 523316e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/submission/power/power_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ def get_avg_power(power_path: str, run_path: str) -> Tuple[float, float]:

with open(spl_fname) as f:
for line in f:
if not line.startswith("Time"):
continue
timestamp = (
datetime.strptime(line.split(",")[1], datetime_format)
).replace(tzinfo=timezone.utc)
Expand Down

0 comments on commit 523316e

Please sign in to comment.