From e524b5627b608f8231d323fe46b8b97a32c19bb4 Mon Sep 17 00:00:00 2001 From: Lauren MacArthur Date: Wed, 1 Nov 2023 15:25:02 -0700 Subject: [PATCH] Accommodate empty source cat in update_visit_summary --- python/lsst/drp/tasks/update_visit_summary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/drp/tasks/update_visit_summary.py b/python/lsst/drp/tasks/update_visit_summary.py index 29377923..454e0d84 100644 --- a/python/lsst/drp/tasks/update_visit_summary.py +++ b/python/lsst/drp/tasks/update_visit_summary.py @@ -706,6 +706,8 @@ def run( psf = None output_record.setPsf(psf) sources = psf_star_catalog[psf_star_catalog["detector"] == detector_id] + if len(sources) == 0: + sources = None self.compute_summary_stats.update_psf_stats( summary_stats, psf,