Mercurial > repos > bimib > cobraxy
diff COBRAxy/ras_to_bounds.py @ 61:455e8945d02a draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 08:05:26 +0000 |
parents | 547942aa1a93 |
children | 14076662f687 |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Sun Oct 13 07:21:04 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 08:05:26 2024 +0000 @@ -226,7 +226,7 @@ ras = ras.astype(float) ras_list.append(ras) for patient_id in ras.index: - class_assignments = pd.concat([class_assignments, pd.DataFrame({"Patient_ID": patient_id, "Class": ras_class_name})]) + class_assignments.loc[class_assignments.shape[0]] = [patient_id, ras_class_name] # Concatenate all ras DataFrames into a single DataFrame