From bfadd08faef872e4f2a0a7ad39acf1cac97644ae Mon Sep 17 00:00:00 2001 From: Dawn Smith Date: Tue, 12 Nov 2024 18:06:12 -0500 Subject: [PATCH] [FIX] Ensure manifest files regenerate when --remake used too --- bin/dm_qc_report.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/dm_qc_report.py b/bin/dm_qc_report.py index 59cfd138..8571f012 100755 --- a/bin/dm_qc_report.py +++ b/bin/dm_qc_report.py @@ -411,6 +411,10 @@ def add_scan_length(nii_path, scan): def remove_outputs(metric): + try: + os.remove(metric.manifest_path) + except FileNotFoundError: + pass for command in metric.outputs: for item in metric.outputs[command]: try: