Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore trailing whitespace lines in spl.txt files #1584

Merged
merged 6 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/submission/power/power_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ 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
psyhtest marked this conversation as resolved.
Show resolved Hide resolved
timestamp = (
datetime.strptime(line.split(",")[1], datetime_format)
).replace(tzinfo=timezone.utc)
Expand Down
1 change: 1 addition & 0 deletions tools/submission/submission_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,7 @@ def get_power_metric(config, scenario_fixed, log_path, is_valid, res):
power_list = []
with open(spl_fname) as f:
for line in f:
if not line.startswith("Time"): continue
timestamp = (
datetime.datetime.strptime(line.split(",")[1], datetime_format)
+ server_timezone
Expand Down
Loading