Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Feb 12, 2024
1 parent d4af871 commit 4baed24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions util/sim/Simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def get_cpu_time(self):
seconds = float(match.group(1))
return seconds


class BansheeSimulation(Simulation):
"""A simulation running on Banshee.
Expand Down
11 changes: 5 additions & 6 deletions util/sim/sim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"""

import argparse
from termcolor import colored, cprint
from pathlib import Path
import os
import time
Expand Down Expand Up @@ -223,11 +222,11 @@ def dump_report(sims, path=None):
sims: A list of simulations from the simulation suite.
"""
data = [{'elf': sim.elf,
'launched': sim.launched(),
'completed': sim.completed(),
'passed': sim.successful(),
'CPU time [s]': sim.get_cpu_time(),
'simulation time [ns]': sim.get_simulation_time()} for sim in sims]
'launched': sim.launched(),
'completed': sim.completed(),
'passed': sim.successful(),
'CPU time [s]': sim.get_cpu_time(),
'simulation time [ns]': sim.get_simulation_time()} for sim in sims]
df = pd.DataFrame(data)
df = df.set_index('elf')
if path is None:
Expand Down

0 comments on commit 4baed24

Please sign in to comment.