Skip to content

Commit

Permalink
Merge pull request #171 from lsst/tickets/DM-21248
Browse files Browse the repository at this point in the history
DM-21248: Do not attempt to create a WCS if the exposure is for an amp
  • Loading branch information
timj committed Sep 17, 2019
2 parents 069e110 + fd963a5 commit a047fbb
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit a047fbb

Please sign in to comment.