Skip to content

Commit

Permalink
Ignore trailing whitespace lines in spl.txt files.
Browse files Browse the repository at this point in the history
  • Loading branch information
psyhtest committed Jan 26, 2024
1 parent 618732c commit 60a3107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compliance/check.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
timestamp = (
datetime.strptime(line.split(",")[1], datetime_format)
).replace(tzinfo=timezone.utc)
Expand Down

0 comments on commit 60a3107

Please sign in to comment.