From 01940713ac0e35aea6db10aea99dbcf871b323ba Mon Sep 17 00:00:00 2001 From: dencheva Date: Wed, 14 Jan 2009 21:42:24 +0000 Subject: Fixed a bug, finding dgeo file . git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7445 fe389314-cf27-0410-b35b-8c050e845b92 --- hstwcs/apply_corrections.py | 4 ++-- 1 file 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): -- cgit