Mercurial > repos > bimib > cobraxy
diff COBRAxy/ras_to_bounds.py @ 209:00a66b9bc29e draft
Uploaded
author | luca_milaz |
---|---|
date | Thu, 28 Nov 2024 13:51:23 +0000 |
parents | 3fca9b568faf |
children | b162b98f9de5 |
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):