Mercurial > repos > bimib > cobraxy
changeset 140:63cb32c3d8b1 draft
Uploaded
author | luca_milaz |
---|---|
date | Thu, 31 Oct 2024 19:42:40 +0000 |
parents | 74b383211ab5 |
children | 726e1dc71f03 |
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 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):