diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2020-10-04 11:07:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 11:07:56 +0200 |
commit | 615e5f0ff27e019524564c08340ea4408769be85 (patch) | |
tree | 75860662cb88452595e7bfcd72433e3568999bc6 /scripts | |
parent | cdcfbbc8bc2cecd6c2fab817f48c94200c5ae721 (diff) | |
parent | 45fd085395c29a084602ce6f747487b17a5491d9 (diff) |
Merge pull request #397 from baryluk/patch-1
Fix Python SyntaxWarning
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/benchmark/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/benchmark/benchmark.py b/scripts/benchmark/benchmark.py index 53e30cc8..c715decd 100644 --- a/scripts/benchmark/benchmark.py +++ b/scripts/benchmark/benchmark.py @@ -103,7 +103,7 @@ def benchmark_single(benchmark, comparisons, platform, device, num_runs, precisi # The benchmark name and plot title benchmark_name = utils.precision_to_letter(precision) + benchmark.upper() if benchmark.upper() != "SUMMARY": - plot_title = benchmark_name if plot_title is "" else benchmark_name + ": " + plot_title + plot_title = benchmark_name if plot_title == "" else benchmark_name + ": " + plot_title # Retrieves the comparison settings library_ids = [1] |