Skip to content

Commit

Permalink
Use setId instead of VisitInfo.exposureId.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Oct 21, 2021
1 parent be4cc4e commit 91f205c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/pipe/tasks/makeCoaddTempExp.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ def run(self, calExpList, ccdIdList, skyInfo, visitId=0, dataIdList=None, **kwar
dataId, numGoodPix[warpType],
100.0*numGoodPix[warpType]/skyInfo.bbox.getArea(), warpType)
if numGoodPix[warpType] > 0 and not didSetMetadata[warpType]:
coaddTempExp.info.id = exposure.info.id
coaddTempExp.setPhotoCalib(exposure.getPhotoCalib())
coaddTempExp.setFilterLabel(exposure.getFilterLabel())
coaddTempExp.getInfo().setVisitInfo(exposure.getInfo().getVisitInfo())
Expand Down
1 change: 1 addition & 0 deletions tests/test_coaddInputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def makeExposure(self, universalId):
exp.setDetector(detector)

expInfo = exp.getInfo()
expInfo.id = 10313423
scale = 5.1e-5*lsst.geom.degrees
cdMatrix = lsst.afw.geom.makeCdMatrix(scale=scale)
wcs = lsst.afw.geom.makeSkyWcs(
Expand Down

0 comments on commit 91f205c

Please sign in to comment.