Skip to content

Commit f5ee305

Browse files
authored
Merge pull request #325 from krai/fix-power-whitespace
Ignore trailing whitespace lines in spl.txt files
2 parents 618732c + 8d5d010 commit f5ee305

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compliance/check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def get_avg_power(power_path: str, run_path: str) -> Tuple[float, float]:
408408

409409
with open(spl_fname) as f:
410410
for line in f:
411+
if not line.startswith("Time"):
412+
continue
411413
timestamp = (
412414
datetime.strptime(line.split(",")[1], datetime_format)
413415
).replace(tzinfo=timezone.utc)

0 commit comments

Comments
 (0)