Skip to content

Commit 974d86a

Browse files
juliangilbeyJulian Gilbey
andauthored
Fix reporting of whether marker are being used (#238)
Co-authored-by: Julian Gilbey <[email protected]>
1 parent 7b37b0e commit 974d86a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/entry.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ def print_config_summary(
5252
table.add_row("Directory Path", f"{curr_dir}")
5353
table.add_row("Count of Images", f"{len(omr_files)}")
5454
table.add_row("Set Layout Mode ", "ON" if args["setLayout"] else "OFF")
55+
pre_processor_names = [pp.__class__.__name__ for pp in template.pre_processors]
5556
table.add_row(
5657
"Markers Detection",
57-
"ON" if "CropOnMarkers" in template.pre_processors else "OFF",
58+
"ON" if "CropOnMarkers" in pre_processor_names else "OFF",
5859
)
5960
table.add_row("Auto Alignment", f"{tuning_config.alignment_params.auto_align}")
6061
table.add_row("Detected Template Path", f"{template}")
@@ -65,7 +66,7 @@ def print_config_summary(
6566

6667
table.add_row(
6768
"Detected pre-processors",
68-
f"{[pp.__class__.__name__ for pp in template.pre_processors]}",
69+
", ".join(pre_processor_names),
6970
)
7071
console.print(table, justify="center")
7172

0 commit comments

Comments
 (0)