Skip to content

Commit

Permalink
Ignore whitespace lines in spl.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
psyhtest committed Feb 5, 2024
1 parent 8fbd2a9 commit 93f33c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base_power_measurement_experiment/code_axs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def avg_power( mlperf_log_parser_path, server_timezone_sec, client_timezone_sec,

power_list = []
for line in load_lines(power_sample_log_path):
if not line.startswith("Time"): continue
timestamp = datetime.datetime.strptime(line.split(",")[1], datetime_format) + server_timezone
if timestamp > power_begin and timestamp < power_end:
power_list.append(float(line.split(",")[3]))
Expand Down

0 comments on commit 93f33c4

Please sign in to comment.