From db1410cb9be2af6b79798b0decee9b63853a30d6 Mon Sep 17 00:00:00 2001 From: Eric Bellm Date: Thu, 4 Jan 2024 14:01:44 -0800 Subject: [PATCH] create diaForcedSource flags column and set to zero --- python/lsst/ap/association/diaForcedSource.py | 2 ++ tests/test_diaForcedSource.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/lsst/ap/association/diaForcedSource.py b/python/lsst/ap/association/diaForcedSource.py index b961bb4a..f71c342b 100644 --- a/python/lsst/ap/association/diaForcedSource.py +++ b/python/lsst/ap/association/diaForcedSource.py @@ -235,6 +235,8 @@ def _calibrate_and_merge(self, output_catalog["midpointMjdTai"] = midpointMjdTai output_catalog["band"] = diff_exp.getFilter().bandLabel output_catalog["time_processed"] = DateTime.now().toPython() + # TODO: propagate actual flags (DM-42355) + output_catalog["flags"] = 0 # Drop superfluous columns from output DataFrame. output_catalog.drop(columns=self.config.dropColumns, inplace=True) diff --git a/tests/test_diaForcedSource.py b/tests/test_diaForcedSource.py index 624b24e1..63a6ccc3 100644 --- a/tests/test_diaForcedSource.py +++ b/tests/test_diaForcedSource.py @@ -173,7 +173,7 @@ def setUp(self): # above list of ids. self.expectedDiaForcedSources = 6 - self.expected_n_columns = 12 + self.expected_n_columns = 13 def testRun(self): """Test that forced source catalogs are successfully created and have