Skip to content

Commit

Permalink
Add coord covariance to calibrateImage test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Aug 22, 2023
1 parent f7dcadf commit 13efc3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13efc3d

Please sign in to comment.