Skip to content

Commit

Permalink
Merge pull request #854 from lsst/tickets/DM-41345
Browse files Browse the repository at this point in the history
DM-41345: Let TestDataset handle coordinates
  • Loading branch information
parejkoj committed Nov 2, 2023
2 parents e012fd4 + 5eb53e5 commit 30531c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ 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
self.truth_cat = self.truth_exposure.photoCalib.calibrateCatalog(self.truth_cat)
self.ref_loader = testUtils.MockReferenceObjectLoaderFromMemory([self.truth_cat])
Expand Down

0 comments on commit 30531c2

Please sign in to comment.