From 13efc3d670b598d51859a25c1290f7838a426baa Mon Sep 17 00:00:00 2001 From: Clare Saunders Date: Tue, 22 Aug 2023 11:05:28 -0700 Subject: [PATCH] Add coord covariance to calibrateImage test --- tests/test_calibrateImage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_calibrateImage.py b/tests/test_calibrateImage.py index 6b314d80fb..3e52b5a140 100644 --- a/tests/test_calibrateImage.py +++ b/tests/test_calibrateImage.py @@ -77,8 +77,10 @@ def setUp(self): schema = dataset.makeMinimalSchema() schema.addField("truth_flux", type=np.float64, doc="true flux", units="nJy") schema.addField("truth_fluxErr", type=np.float64, doc="true fluxErr", units="nJy") + # Add coordinate error fields needed by updateSourceCoords below: + afwTable.CoordKey.addErrorFields(schema) - self.truth_exposure, self.truth_cat = dataset.realize(noise=noise, schema=dataset.makeMinimalSchema()) + self.truth_exposure, self.truth_cat = dataset.realize(noise=noise, schema=schema) lsst.afw.table.updateSourceCoords(self.truth_exposure.wcs, self.truth_cat) # To make it look like a version=1 (nJy fluxes) refcat self.truth_cat = self.truth_exposure.photoCalib.calibrateCatalog(self.truth_cat)