Skip to content

Commit

Permalink
Merge pull request #188 from lsst/tickets/DM-42354
Browse files Browse the repository at this point in the history
DM-42354: Populate diaForcedSource flags with zeros
  • Loading branch information
ebellm committed Jan 5, 2024
2 parents ecae9a9 + db1410c commit 6b1805f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/lsst/ap/association/diaForcedSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_diaForcedSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b1805f

Please sign in to comment.