From 9a9d5286d92d03c25c883431415da4a0bb7fa2af Mon Sep 17 00:00:00 2001 From: Michael McCrackan Date: Thu, 19 Dec 2024 10:21:10 -0800 Subject: [PATCH] fix bug with save_groups_and_cleanup --- sotodlib/preprocess/preprocess_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sotodlib/preprocess/preprocess_util.py b/sotodlib/preprocess/preprocess_util.py index 70e4dae24..9298d231d 100644 --- a/sotodlib/preprocess/preprocess_util.py +++ b/sotodlib/preprocess/preprocess_util.py @@ -579,10 +579,10 @@ def save_group_and_cleanup(obs_id, configs, context=None, subdir='temp', cleanup_mandb(None, outputs_grp, configs, logger) else: # if we're overwriting, remove file so it will re-run - os.remove(output_grp['temp_file']) + os.remove(outputs_grp['temp_file']) except OSError as e: # remove if it can't be opened - os.remove(output_grp['temp_file']) + os.remove(outputs_grp['temp_file']) def preproc_or_load_group(obs_id, configs_init, dets, configs_proc=None, logger=None,