From 7c75bf4fb1b2eedbbc3691c132f2aab04e4aab5e Mon Sep 17 00:00:00 2001 From: John Parejko Date: Thu, 26 Oct 2023 17:40:03 -0700 Subject: [PATCH 1/2] Let TestDataset handle coord error fields --- tests/test_calibrateImage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_calibrateImage.py b/tests/test_calibrateImage.py index fe43af757..22fd9a553 100644 --- a/tests/test_calibrateImage.py +++ b/tests/test_calibrateImage.py @@ -75,7 +75,6 @@ def setUp(self): dataset.addSource(instFlux=500*noise*psf_scale, centroid=center, shape=shape) schema = dataset.makeMinimalSchema() - afwTable.CoordKey.addErrorFields(schema) 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 From 5eb53e5b44c2b832719332b37761a91159ee579f Mon Sep 17 00:00:00 2001 From: John Parejko Date: Fri, 27 Oct 2023 09:32:19 -0700 Subject: [PATCH 2/2] Let TestDataset handle coordinates --- tests/test_calibrateImage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_calibrateImage.py b/tests/test_calibrateImage.py index 22fd9a553..c92547d85 100644 --- a/tests/test_calibrateImage.py +++ b/tests/test_calibrateImage.py @@ -76,7 +76,6 @@ def setUp(self): 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) self.ref_loader = testUtils.MockReferenceObjectLoaderFromMemory([self.truth_cat])