Skip to content

Commit

Permalink
fix UP031
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s authored Nov 26, 2024
1 parent 7277a2b commit 7b13c90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hpp/corbaserver/ompl_benchmark_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,15 +587,14 @@ def plotStatistics(dbname, fname):
experiments = c.fetchall()
for experiment in experiments:
c.execute(
"""SELECT count(*) FROM runs WHERE runs.experimentid = %d
f"""SELECT count(*) FROM runs WHERE runs.experimentid = {experiment[0]}
GROUP BY runs.plannerid"""
% experiment[0]
)
numRuns = [run[0] for run in c.fetchall()]
numRuns = numRuns[0] if len(set(numRuns)) == 1 else ",".join(numRuns)

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

0 comments on commit 7b13c90

Please sign in to comment.