Skip to content

Commit

Permalink
Use VisitInfo instead of deprecated makeVisitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Mar 17, 2017
1 parent 4173d19 commit c0c6181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/lsst/obs/hsc/hscMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def std_raw(self, item, dataId):

def std_dark(self, item, dataId):
exposure = self._standardizeExposure(self.calibrations['dark'], item, dataId, trimmed=False)
visitInfo = afwImage.makeVisitInfo(exposureTime=1.0, darkTime=1.0)
visitInfo = afwImage.VisitInfo(exposureTime=1.0, darkTime=1.0)
exposure.getInfo().setVisitInfo(visitInfo)
return exposure

Expand Down
2 changes: 1 addition & 1 deletion python/lsst/obs/hsc/makeHscRawVisitInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MakeHscRawVisitInfo(MakeRawVisitInfo):
observatory = Observatory(-155.476667*degrees, 19.825556*degrees, 4139) # long, lat, elev

def setArgDict(self, md, argDict):
"""Set an argument dict for makeVisitInfo and pop associated metadata
"""Set an argument dict for VisitInfo and pop associated metadata
@param[in,out] md metadata, as an lsst.daf.base.PropertyList or PropertySet
@param[in,out] argdict a dict of arguments
Expand Down

0 comments on commit c0c6181

Please sign in to comment.