diff --git a/python/lsst/ip/diffim/makeKernel.py b/python/lsst/ip/diffim/makeKernel.py index f1958db9..b5457b68 100644 --- a/python/lsst/ip/diffim/makeKernel.py +++ b/python/lsst/ip/diffim/makeKernel.py @@ -100,7 +100,10 @@ def __init__(self, *args, **kwargs): # so cannot easily be constructed with makeSubtask self.background = SubtractBackgroundTask(config=self.kConfig.afwBackgroundConfig, name="background", 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)