# HG changeset patch # User luca_milaz # Date 1728806726 0 # Node ID 455e8945d02af1f9ba4d814d035ae0b3d56e5f7f # Parent 547942aa1a93db97e78722ae11a470c480bd0d85 Uploaded diff -r 547942aa1a93 -r 455e8945d02a COBRAxy/ras_to_bounds.py --- 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