# HG changeset patch # User luca_milaz # Date 1732801883 0 # Node ID 00a66b9bc29e92b00096722982726da607977f25 # Parent c2aa3034aac268150e199904dc06b785b5697c97 Uploaded diff -r c2aa3034aac2 -r 00a66b9bc29e COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Thu Nov 28 13:51:11 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Thu Nov 28 13:51:23 2024 +0000 @@ -230,7 +230,7 @@ pass ras_class_names = [] for file in ras_file_names: - ras_class_names.append(file.split(".")[0]) + ras_class_names.append(file.rsplit(".", 1)[0]) ras_list = [] class_assignments = pd.DataFrame(columns=["Patient_ID", "Class"]) for ras_matrix, ras_class_name in zip(ras_file_list, ras_class_names):