From 67f943280ecc2b6a452be47114ac654392b82b44 Mon Sep 17 00:00:00 2001 From: jrmullaney Date: Tue, 15 Oct 2024 08:55:37 -0700 Subject: [PATCH] Add metadata metric to skyObjects Metadata metrics to record the number of sky footprints successfully added to source list. --- python/lsst/meas/algorithms/skyObjects.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/lsst/meas/algorithms/skyObjects.py b/python/lsst/meas/algorithms/skyObjects.py index 8ab7e9b2..efbaae79 100644 --- a/python/lsst/meas/algorithms/skyObjects.py +++ b/python/lsst/meas/algorithms/skyObjects.py @@ -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: