Skip to content

Commit 0145c0c

Browse files
Improve f-string readability
Cannot reuse outer quote character in f-strings on Python 3.10, syntax was added in Python 3.12.
1 parent 9343ee0 commit 0145c0c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bench/ndarray/fancy_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def timer(arr):
146146
plt.legend()
147147
plt.xticks(x-width, np.round(genuine_sizes, 2))
148148
plt.ylabel("Time (s)")
149-
plt.title(f"Fancy indexing {blosc2.__version__}, {NDIMS}D" +f"{" sparse" if SPARSE else ""}")
149+
plt.title(f"Fancy indexing {blosc2.__version__}, {NDIMS}D{' sparse' if SPARSE else ''}")
150150
plt.gca().set_yscale('log')
151151
plt.savefig(f'plots/fancyIdx{filename}.png', format="png")
152152
plt.show()

bench/ndarray/slice-expr-step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def _gitem():
4646
lab = 'LARGE' if LARGE_SLICE else 'SMALL'
4747
plt.title(f'{lab} slice w/steps, Linux Blosc2 {blosc2.__version__}')
4848
plt.legend([f'expr.slice({_slice}', f'expr[{_slice}]'])
49-
plt.savefig(f'sliceexpr_{lab}_Blosc{blosc2.__version__.replace('.','_')}.png', format="png")
49+
plt.savefig(f'sliceexpr_{lab}_Blosc{blosc2.__version__.replace(".","_")}.png', format="png")

0 commit comments

Comments
 (0)