Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-15180: Add coordinate covariance to SFM schema #252

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/test_forcedPhot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import lsst.afw.image
from lsst.afw.math import ChebyshevBoundedField
from lsst.afw.table import CoordKey
from lsst.meas.base import ForcedPhotCcdTask, ForcedPhotCcdFromDataFrameTask
import lsst.meas.base.tests
import lsst.utils.tests
Expand All @@ -50,6 +51,8 @@ def setUp(self):
dataset.addSource(instFlux=10000, centroid=lsst.geom.Point2D(60, 70))

schema = dataset.makeMinimalSchema()
# Add coordinate error fields needed by updateSourceCoords below:
CoordKey.addErrorFields(schema)
self.exposure, self.refCat = dataset.realize(noise=10, schema=schema)
lsst.afw.table.updateSourceCoords(self.exposure.wcs, self.refCat)
# Simple aperture correction map in case the task needs it.
Expand Down