Skip to content

Commit

Permalink
fix bug with save_groups_and_cleanup (#1074)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael McCrackan <[email protected]>
  • Loading branch information
mmccrackan and Michael McCrackan authored Dec 19, 2024
1 parent d6e6aa2 commit 5d613d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sotodlib/preprocess/preprocess_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d613d5

Please sign in to comment.