Mercurial > repos > bimib > cobraxy
diff COBRAxy/ras_to_bounds.py @ 140:63cb32c3d8b1 draft
Uploaded
author | luca_milaz |
---|---|
date | Thu, 31 Oct 2024 19:42:40 +0000 |
parents | 03bbbd9af67d |
children | 726e1dc71f03 |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Thu Oct 31 18:52:16 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Thu Oct 31 19:42:40 2024 +0000 @@ -227,7 +227,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):