Skip to content

Commit

Permalink
Add metadata metric to skyObjects
Browse files Browse the repository at this point in the history
Metadata metrics to record the number of sky footprints successfully
added to source list.
  • Loading branch information
jrmullaney committed Oct 17, 2024
1 parent fa443fc commit 67f9432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/meas/algorithms/skyObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def run(self, mask, seed, catalog=None):
skyFootprints = generateSkyObjects(mask, seed, self.config)
self.log.info("Added %d of %d requested sky sources (%.0f%%)", len(skyFootprints),
self.config.nSources, 100*len(skyFootprints)/self.config.nSources)
self.metadata["sky_footprint_count"] = len(skyFootprints)

if skyFootprints and self.skySourceKey is not None and catalog is not None:
for footprint in skyFootprints:
Expand Down

0 comments on commit 67f9432

Please sign in to comment.