fix typos found by ruff

This commit is contained in:
Robert Sachunsky 2025-11-15 15:46:08 +01:00
parent 72d059f3c9
commit 49ab269e08
2 changed files with 2 additions and 2 deletions

View file

@ -328,7 +328,7 @@ class SbbBinarizer:
print(input_path, 'image_name') print(input_path, 'image_name')
if os.path.exists(output_path): if os.path.exists(output_path):
if overwrite: if overwrite:
self.logger.warning("will overwrite existing output file '%s'", output_ptah) self.logger.warning("will overwrite existing output file '%s'", output_path)
else: else:
self.logger.warning("will skip input for existing output file '%s'", output_path) self.logger.warning("will skip input for existing output file '%s'", output_path)
image = cv2.imread(input_path) image = cv2.imread(input_path)

View file

@ -146,7 +146,7 @@ def return_multicol_separators_x_start_end(
args_emptysep.add(i) args_emptysep.add(i)
# print(j, i, "%d:%d" % (y_mid[j], y_mid[i]), "%d:%d" % (x_start[i], x_end[i]), "empty next sep") # print(j, i, "%d:%d" % (y_mid[j], y_mid[i]), "%d:%d" % (x_start[i], x_end[i]), "empty next sep")
args_to_be_kept = [arg for arg in args_ysorted args_to_be_kept = [arg for arg in args_ysorted
if not arg in args_emptysep] if arg not in args_emptysep]
x_start = x_start[args_to_be_kept] x_start = x_start[args_to_be_kept]
x_end = x_end[args_to_be_kept] x_end = x_end[args_to_be_kept]
y_min = y_min[args_to_be_kept] y_min = y_min[args_to_be_kept]