Skip to content

Commit

Permalink
Update to use lsst.afw.fits.readMetadata
Browse files Browse the repository at this point in the history
Replace use of deprecated lsst.afw.image.readMetadata
with lsst.afw.fits.readMetadata
  • Loading branch information
r-owen committed Jan 3, 2018
1 parent d513ce3 commit 75a49a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/obs/monocam/monocamMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import lsst.afw.image.utils as afwImageUtils
import lsst.afw.geom as afwGeom
import lsst.afw.image as afwImage
from lsst.afw.fits import readMetadata
from lsst.obs.base import CameraMapper
import lsst.pex.policy as pexPolicy
from .monocam import Monocam
Expand Down Expand Up @@ -126,7 +127,7 @@ def bypass_raw(self, datasetType, pythonType, location, dataId):
def bypass_raw_md(self, datasetType, pythonType, location, dataId):
"""Read metadata for raw image, adding fake Wcs"""
filename = location.getLocations()[0]
md = afwImage.readMetadata(filename, 1) # 1 = PHU
md = readMetadata(filename, 1) # 1 = PHU
return md

bypass_raw_amp = bypass_raw
Expand Down

0 comments on commit 75a49a4

Please sign in to comment.