From a6ed42bba87a9e66e1be2852cba22916b41ca646 Mon Sep 17 00:00:00 2001 From: jrmullaney Date: Wed, 26 Mar 2025 05:54:57 -0700 Subject: [PATCH] Add base_PixelFlags plugin to DiaForcedSource Forced Photometry now explicitly requires the base_PixelFlags plugin. --- python/lsst/ap/association/diaForcedSource.py | 3 ++- tests/test_diaForcedSource.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python/lsst/ap/association/diaForcedSource.py b/python/lsst/ap/association/diaForcedSource.py index f47a14f2..eee46072 100644 --- a/python/lsst/ap/association/diaForcedSource.py +++ b/python/lsst/ap/association/diaForcedSource.py @@ -59,7 +59,8 @@ class DiaForcedSourcedConfig(pexConfig.Config): def setDefaults(self): self.forcedMeasurement.plugins = ["base_TransformedCentroidFromCoord", - "base_PsfFlux"] + "base_PsfFlux", + "base_PixelFlags"] self.forcedMeasurement.doReplaceWithNoise = False self.forcedMeasurement.copyColumns = { "id": "diaObjectId", diff --git a/tests/test_diaForcedSource.py b/tests/test_diaForcedSource.py index ee6fe9dc..d5ef4ec5 100644 --- a/tests/test_diaForcedSource.py +++ b/tests/test_diaForcedSource.py @@ -177,7 +177,7 @@ def setUp(self): # above list of ids. self.expectedDiaForcedSources = 6 - self.expected_n_columns = 14 + self.expected_n_columns = 37 def testRun(self): """Test that forced source catalogs are successfully created and have