From 73a7a083c0556625b858082ea93fad839aba7b15 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Tue, 20 May 2025 13:57:15 -0700 Subject: [PATCH] Remove now unnecessary addErrorFields This is handled inside the SkyCoord plugin automatically. --- python/lsst/ip/diffim/detectAndMeasure.py | 2 -- python/lsst/ip/diffim/makeKernel.py | 2 -- tests/utils.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/python/lsst/ip/diffim/detectAndMeasure.py b/python/lsst/ip/diffim/detectAndMeasure.py index 1bc909ed9..5a03ed2ca 100644 --- a/python/lsst/ip/diffim/detectAndMeasure.py +++ b/python/lsst/ip/diffim/detectAndMeasure.py @@ -321,8 +321,6 @@ class DetectAndMeasureTask(lsst.pipe.base.PipelineTask): def __init__(self, **kwargs): super().__init__(**kwargs) self.schema = afwTable.SourceTable.makeMinimalSchema() - # Add coordinate error fields: - afwTable.CoordKey.addErrorFields(self.schema) self.algMetadata = dafBase.PropertyList() if self.config.doSubtractBackground: diff --git a/python/lsst/ip/diffim/makeKernel.py b/python/lsst/ip/diffim/makeKernel.py index 77c9e42b7..ad316990a 100644 --- a/python/lsst/ip/diffim/makeKernel.py +++ b/python/lsst/ip/diffim/makeKernel.py @@ -101,8 +101,6 @@ def __init__(self, *args, **kwargs): parentTask=self) self.selectSchema = lsst.afw.table.SourceTable.makeMinimalSchema() - # Add coordinate error fields: - lsst.afw.table.CoordKey.addErrorFields(self.selectSchema) self.selectAlgMetadata = lsst.daf.base.PropertyList() self.makeSubtask("selectDetection", schema=self.selectSchema) self.makeSubtask("selectMeasurement", schema=self.selectSchema, algMetadata=self.selectAlgMetadata) diff --git a/tests/utils.py b/tests/utils.py index 2bb397c90..6ac08c791 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -879,8 +879,6 @@ def detectTestSources(exposure, addMaskPlanes=None): 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)