From e20ba9ae5f29d16a4e952b554f2f16ff92b257b3 Mon Sep 17 00:00:00 2001 From: Minh Duc Nguyen <37109868+mducducd@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:15:44 +0100 Subject: [PATCH] Enhance logging for patient data completeness Updated logging to include total patients and final usable patients. --- src/stamp/modeling/data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stamp/modeling/data.py b/src/stamp/modeling/data.py index f5d20fe..0318b45 100755 --- a/src/stamp/modeling/data.py +++ b/src/stamp/modeling/data.py @@ -814,9 +814,11 @@ def filter_complete_patient_data_( } _logger.info( - f"Kept {len(patient_to_ground_truth)}/{len(patient_to_ground_truth)} \ - patients with complete data ({len(patient_to_ground_truth) / len(patient_to_ground_truth):.1%})." + f"Total patients in clinical table: {total_clini}\n" + f"Patients appearing in slide table: {total_slides}\n" + f"Final usable patients (complete data): {final_patients}\n" ) + return patients