Skip to content

Commit 7b13c90

Browse files
authored
fix UP031
1 parent 7277a2b commit 7b13c90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/hpp/corbaserver/ompl_benchmark_statistics.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,14 @@ def plotStatistics(dbname, fname):
587587
experiments = c.fetchall()
588588
for experiment in experiments:
589589
c.execute(
590-
"""SELECT count(*) FROM runs WHERE runs.experimentid = %d
590+
f"""SELECT count(*) FROM runs WHERE runs.experimentid = {experiment[0]}
591591
GROUP BY runs.plannerid"""
592-
% experiment[0]
593592
)
594593
numRuns = [run[0] for run in c.fetchall()]
595594
numRuns = numRuns[0] if len(set(numRuns)) == 1 else ",".join(numRuns)
596595

597596
plt.figtext(pagex, pagey, f'Experiment "{experiment[1]}"')
598-
plt.figtext(pagex, pagey - 0.05, "Number of averaged runs: %d" % numRuns)
597+
plt.figtext(pagex, pagey - 0.05, f"Number of averaged runs: {numRuns}")
599598
plt.figtext(
600599
pagex, pagey - 0.10, f"Time limit per run: {experiment[2]:g} seconds"
601600
)

0 commit comments

Comments
 (0)