Skip to content

Commit

Permalink
Update DecamMapper to set visitId in VisitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Sep 26, 2016
1 parent 1e1c777 commit bc21589
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/obs/decam/decamMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def bypass_instcal(self, datasetType, pythonType, butlerLocation, dataId):
calib = afwImage.Calib()
calib.setFluxMag0(10**(0.4 * md0.get("MAGZERO")))
exp.setCalib(calib)
visitInfo = self._makeRawVisitInfo(md0)
exposureId = self._computeCcdExposureId(dataId)
visitInfo = self._makeRawVisitInfo(md=md0, exposureId=exposureId)
exp.getInfo().setVisitInfo(visitInfo)

exp.setMetadata(md) # Do we need to remove WCS/calib info?
Expand All @@ -218,7 +219,8 @@ def std_raw(self, item, dataId):
for kw in ('DARKTIME', ):
if kw in md0.paramNames() and kw not in md.paramNames():
md.add(kw, md0.get(kw))
visitInfo = self._makeRawVisitInfo(md0)
exposureId = self._computeCcdExposureId(dataId)
visitInfo = self._makeRawVisitInfo(md=md0, exposureId=exposureId)
exp.getInfo().setVisitInfo(visitInfo)
# As TPV is not supported yet, the wcs keywords are not pruned
# from the metadata. Once TPV is supported, the following keyword
Expand Down

0 comments on commit bc21589

Please sign in to comment.