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-21248: Do not attempt to create a WCS if the exposure is for an amp #171

Merged
merged 1 commit into from
Sep 17, 2019
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
5 changes: 3 additions & 2 deletions python/lsst/obs/base/cameraMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,8 +1080,9 @@ def _standardizeExposure(self, mapping, item, dataId, filter=True,

# We can only create a WCS if it doesn't already have one and
# we have either a VisitInfo or exposure metadata.
if exposure.getWcs() is None and \
(exposure.getInfo().getVisitInfo() is not None or exposure.getMetadata().toDict() != {}):
# Do not calculate a WCS if this is an amplifier exposure
if mapping.level.lower() != "amp" and exposure.getWcs() is None and \
(exposure.getInfo().getVisitInfo() is not None or exposure.getMetadata().toDict()):
self._createInitialSkyWcs(exposure)

if filter:
Expand Down