From 2a77503b0584a97ea519afa9180da595ef67d357 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Wed, 30 Oct 2024 11:52:26 +0100 Subject: [PATCH] lint code --- mlonmcu/session/postprocess/postprocesses.py | 5 ++--- mlonmcu/session/run.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mlonmcu/session/postprocess/postprocesses.py b/mlonmcu/session/postprocess/postprocesses.py index 5cd7b978b..9f0a94956 100644 --- a/mlonmcu/session/postprocess/postprocesses.py +++ b/mlonmcu/session/postprocess/postprocesses.py @@ -23,7 +23,7 @@ import tempfile from pathlib import Path from io import StringIO -from collections import defaultdict +from collections import defaultdict import numpy as np import pandas as pd @@ -1955,8 +1955,7 @@ def post_session(self, report): content += f" {stage} : {time_s}s\n" else: - content += f" {stage} : {start}, {end}\n" + content += f" {stage} : {start}, {end}\n" artifact = Artifact("stage_times.mermaid", content=content, fmt=ArtifactFormat.TEXT) artifacts.append(artifact) return artifacts - diff --git a/mlonmcu/session/run.py b/mlonmcu/session/run.py index b3aa215a0..a83553cf4 100644 --- a/mlonmcu/session/run.py +++ b/mlonmcu/session/run.py @@ -1100,7 +1100,7 @@ def process(self, until=RunStage.RUN, skip=None, export=False): func() if self.profile_stages: end = time.time() - self.times[stage] = (start, end) + self.times[stage] = (start, end) except Exception as e: self.failing = True self.reason = e