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-12596: AstrometryTask.distort broken #3

Merged
merged 2 commits into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
_build.*
.sconf_temp/
.sconsign.dblite
.cache
pytest_session.txt
config.log
doc/html
doc/doxygen.conf
Expand Down
5 changes: 2 additions & 3 deletions python/lsst/meas/extensions/astrometryNet/anetAstrometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import lsstDebug
import lsst.pex.exceptions
import lsst.afw.geom as afwGeom
from lsst.afw.cameraGeom import TAN_PIXELS
from lsst.afw.cameraGeom import PIXELS, TAN_PIXELS
from lsst.afw.table import Point2DKey, CovarianceMatrix2fKey
import lsst.pex.config as pexConfig
import lsst.pipe.base as pipeBase
Expand Down Expand Up @@ -256,8 +256,7 @@ def distort(self, sourceCat, exposure):
if detector is None:
self.log.warn("No detector associated with exposure; assuming null distortion")
else:
tanSys = detector.makeCameraSys(TAN_PIXELS)
pixToTanXYTransform = detector.getTransformMap().get(tanSys)
pixToTanXYTransform = detector.getTransform(PIXELS, TAN_PIXELS)

if pixToTanXYTransform is None:
self.log.info("Null distortion correction")
Expand Down