Skip to content

Commit

Permalink
Fix warnings about missing coordinate errors in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Nov 22, 2024
1 parent fec2e1e commit 5970128
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 5970128

Please sign in to comment.