Skip to content

Commit 8e9e5c2

Browse files
committed
fix a f-string expression can't include backsplash issue
Signed-off-by: Tsai, Louie <[email protected]>
1 parent 83013bc commit 8e9e5c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.buildkite/nightly-benchmarks/scripts/convert-results-json-to-markdown.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ def get_size(bytes, suffix="B"):
219219

220220
# The GPUs sometimes come in format of "GPUTYPE\nGPUTYPE\n...",
221221
# we want to turn it into "8xGPUTYPE"
222+
chg_line_char = "\n"
222223
df["GPU"] = df["GPU"].apply(
223-
lambda x: f"{len(x.split('\n'))}x{x.split('\n')[0]}"
224+
lambda x: f"{len(x.split(chg_line_char))}x{x.split(chg_line_char)[0]}"
224225
)
225226

226227
# get markdown tables

0 commit comments

Comments
 (0)