Skip to content

Commit

Permalink
Add coord cov in test_calibrateImage
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Aug 24, 2023
1 parent 4d2b907 commit 8ddfabb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def setUp(self):
shape = lsst.afw.geom.Quadrupole(8, 9, 3)
dataset.addSource(instFlux=500*noise*psf_scale, centroid=center, shape=shape)

self.truth_exposure, self.truth_cat = dataset.realize(noise=noise, schema=dataset.makeMinimalSchema())
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
self.truth_cat = self.truth_exposure.photoCalib.calibrateCatalog(self.truth_cat)
Expand Down Expand Up @@ -211,6 +213,7 @@ def test_astrometry(self):
sources, background, candidates = calibrate._compute_psf(self.exposure)
calibrate._measure_aperture_correction(self.exposure, sources)
stars = calibrate._find_stars(self.exposure, background)

calibrate._fit_astrometry(self.exposure, stars)

# Check that we got reliable matches with the truth coordinates.
Expand Down

0 comments on commit 8ddfabb

Please sign in to comment.