diff options
| -rw-r--r-- | hstwcs/apply_corrections.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/hstwcs/apply_corrections.py b/hstwcs/apply_corrections.py index 9c7f22a..1a3b726 100644 --- a/hstwcs/apply_corrections.py +++ b/hstwcs/apply_corrections.py @@ -97,6 +97,8 @@ def applyDgeoCorr(fname, udgeocorr):              print 'DGEO correction will not be applied\n'              applyDGEOCorr = False              return applyDGEOCorr  +        if isOldStyleDGEO(fname, fdgeo0): +            applyDGEOCorr = False                 try:              # get DGEOFILE kw from first extension header              fdgeo1 = pyfits.getval(fname, 'DGEOFILE', ext=1) @@ -119,8 +121,6 @@ def applyDgeoCorr(fname, udgeocorr):          print 'DGEOFILE keyword not found in primary header'          applyDGEOCorr = False -    if isOldStyleDGEO(fname, fdgeo0): -        applyDGEOCorr = False         return (applyDGEOCorr and udgeocorr)  def isOldStyleDGEO(fname, dgname): | 
