Skip to content

Commit 4bf1dc2

Browse files
committed
Updated tegnforklaring path logic in main segmentation pipeline
1 parent 9989a48 commit 4bf1dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main_segmentation_pipeline/main_segmentation_pipeline.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ def compute_color_task(p_item):
504504
base = os.path.splitext(os.path.basename(original_path))[0] # e.g. "0203_plankart_tegnforklaring"
505505

506506
# Remove "_plankart" (case-insensitive) from that base
507-
base_no_plankart = re.sub(r" Plankart", "", base, flags=re.IGNORECASE)
507+
base_no_plankart = re.sub(r"_plankart", "", base, flags=re.IGNORECASE)
508508
# Then add "_tegnforklaring"
509-
final_base = base_no_plankart + " Tegnforklaring"
509+
final_base = base_no_plankart + "_tegnforklaring"
510510

511511
dir_name = os.path.dirname(original_path)
512512

0 commit comments

Comments
 (0)