Skip to content

Commit

Permalink
update for internal butler changes
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed Jul 5, 2016
1 parent ac0ccbc commit 4ec04d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decam/makeLinearizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from lsst.ip.isr import LinearizeLookupTable
from lsst.obs.decam import DecamMapper
from lsst.daf.persistence import Butler, posixRepoCfg
from lsst.daf.persistence import Butler

def makeLinearizerDecam(fromFile, force=False, verbose=False):
"""Convert the specified DECam linearity FITS table to standard LSST format
Expand All @@ -29,7 +29,7 @@ def makeLinearizerDecam(fromFile, force=False, verbose=False):
@param[in] fromFile path to DECam linearity table (a FITS file with one HDU per amplifier)
"""
print("Making DECam linearizers from %r" % (fromFile,))
butler = Butler(Butler.cfg(posixRepoCfg(mapper=DecamMapper)))
butler = Butler(mapper=DecamMapper)
linearizerDir = DecamMapper.getLinearizerDir()
if os.path.exists(linearizerDir):
if not force:
Expand Down

0 comments on commit 4ec04d8

Please sign in to comment.