changeset 209:00a66b9bc29e draft

Uploaded
author luca_milaz
date Thu, 28 Nov 2024 13:51:23 +0000
parents c2aa3034aac2
children 3ca179b83574
files COBRAxy/ras_to_bounds.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):