diff --git a/compliance/check.py b/compliance/check.py index ac9cb0a..93d9d6f 100755 --- a/compliance/check.py +++ b/compliance/check.py @@ -408,7 +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 + if not line.startswith("Time"): + continue timestamp = ( datetime.strptime(line.split(",")[1], datetime_format) ).replace(tzinfo=timezone.utc)