Skip to content

Commit

Permalink
Merge pull request #364 from lsst/tickets/DM-47680
Browse files Browse the repository at this point in the history
DM-47680: Fix warnings about missing coordinate errors in unit tests
  • Loading branch information
isullivan authored Nov 22, 2024
2 parents fec2e1e + 5970128 commit 8554a5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ def detectTestSources(exposure, addMaskPlanes=None):
addMaskPlanes = ["STREAK", "INJECTED", "INJECTED_TEMPLATE"]

schema = afwTable.SourceTable.makeMinimalSchema()

# Add coordinate error fields:
afwTable.CoordKey.addErrorFields(schema)
selectDetection = measAlg.SourceDetectionTask(schema=schema)
selectMeasurement = measBase.SingleFrameMeasurementTask(schema=schema)
table = afwTable.SourceTable.make(schema)
Expand Down

0 comments on commit 8554a5d

Please sign in to comment.