diff options
Diffstat (limited to 'benchmarks/benchmarks/30_numpy.py')
-rw-r--r-- | benchmarks/benchmarks/30_numpy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/benchmarks/30_numpy.py b/benchmarks/benchmarks/30_numpy.py index e2b0f5f..139ce58 100644 --- a/benchmarks/benchmarks/30_numpy.py +++ b/benchmarks/benchmarks/30_numpy.py @@ -9,11 +9,11 @@ from . import util lengths = ("short", "mid") all_values = tuple( - "{}_{}".format(a, b) for a, b in it.product(lengths, ("list", "tuple", "array")) + f"{a}_{b}" for a, b in it.product(lengths, ("list", "tuple", "array")) ) all_arrays = ("short_array", "mid_array") units = ("meter", "kilometer") -all_arrays_q = tuple("{}_{}".format(a, b) for a, b in it.product(all_arrays, units)) +all_arrays_q = tuple(f"{a}_{b}" for a, b in it.product(all_arrays, units)) ureg = None data = {} |