Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Oct 30, 2024
1 parent 65454d1 commit 2a77503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mlonmcu/session/postprocess/postprocesses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

2 changes: 1 addition & 1 deletion mlonmcu/session/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a77503

Please sign in to comment.