Skip to content

Commit

Permalink
ENH remove coadd object map file
Browse files Browse the repository at this point in the history
  • Loading branch information
sidneymau committed Jan 11, 2024
1 parent 4aa9d17 commit 1370819
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eastlake/steps/delete_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ def execute(self, stash, new_params=None):
self.logger.debug("removing file %s" % bkg_rms_file)
safe_rm(bkg_rms_file)

# ...and coadd object map
coadd_object_map_file = stash.get_filepaths(
"coadd_object_map", tilename, band=band,
keyerror=False,
)
if (coadd_object_map_file is not None):
if os.path.isfile(coadd_object_map_file):
self.logger.debug("removing file %s" % coadd_object_map_file)
safe_rm(coadd_object_map_file)

self.logger.error("deleting se images for tile %s" % tilename)
for band in stash["bands"]:
img_files = stash.get_filepaths(
Expand Down

0 comments on commit 1370819

Please sign in to comment.