From 5970128ef060f6caf224318cc1f09f0726a284dd Mon Sep 17 00:00:00 2001 From: Ian Sullivan Date: Thu, 21 Nov 2024 22:16:55 -0800 Subject: [PATCH] Fix warnings about missing coordinate errors in unit tests --- tests/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/utils.py b/tests/utils.py index 6b4cd75d..d275f3a8 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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)