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 12, 2021
1 parent 0fd006c commit e66f51b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/cp/pipe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def makeMockFlats(expTime, gain=1.0, readNoiseElectrons=5, fluxElectrons=1000,
visitInfoExp1 = lsst.afw.image.VisitInfo(exposureId=expId1, exposureTime=expTime)
visitInfoExp2 = lsst.afw.image.VisitInfo(exposureId=expId2, exposureTime=expTime)

flatExp1.info.id = expId1
flatExp1.getInfo().setVisitInfo(visitInfoExp1)
flatExp2.info.id = expId2
flatExp2.getInfo().setVisitInfo(visitInfoExp2)

return flatExp1, flatExp2
Expand Down

0 comments on commit e66f51b

Please sign in to comment.