diff COBRAxy/ras_to_bounds.py @ 141:726e1dc71f03 draft

Uploaded
author luca_milaz
date Thu, 31 Oct 2024 19:53:20 +0000
parents 63cb32c3d8b1
children 3fca9b568faf
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py	Thu Oct 31 19:42:40 2024 +0000
+++ b/COBRAxy/ras_to_bounds.py	Thu Oct 31 19:53:20 2024 +0000
@@ -227,7 +227,7 @@
             pass
         ras_class_names = []
         for file in ras_file_names:
-            ras_class_names.append(file.rsplit('.', 1)[0])
+            ras_class_names.append(file.split(".")[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):