Skip to content

Commit

Permalink
f-string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
liebharc committed Dec 22, 2024
1 parent 006ceb3 commit daedf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation/ser_for_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def calc_symbol_error_rate_for_list(dataset: list[str], result_file: str, config
added_symbols = "+".join(set(actual) - set(expected))
missing_symbols = "+".join(set(expected) - set(actual))
result.write(
f"{img_path},{ser},{len_expected},{len_actual},{added_symbols},{missing_symbols},{"+".join(expected)},{"+".join(actual)}\n"
f"{img_path},{ser},{len_expected},{len_actual},{added_symbols},{missing_symbols},{'+'.join(expected)},{'+'.join(actual)}\n"
)
eprint(f"Progress: {percentage}%, SER: {ser}%")

Expand Down

0 comments on commit daedf15

Please sign in to comment.