Skip to content

Commit

Permalink
Ensure that we skip empty maps that should not be appended.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Oct 23, 2023
1 parent e525375 commit ac447c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/pipe/tasks/healSparseMapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ def run(self, sky_map, tract, band, coadd_dict, input_map_dict, visit_summary_di
if input_map.valid_pixels.size == 0:
self.log.warning("No valid pixels for band %s, tract %d, patch %d; skipping.",
band, tract, patch)
# Skip if we've already initialized our tract maps.
if tract_maps_initialized:
continue

coadd_photo_calib = coadd_dict[patch].get(component="photoCalib")
coadd_inputs = coadd_dict[patch].get(component="coaddInputs")

Expand Down

0 comments on commit ac447c3

Please sign in to comment.