summaryrefslogtreecommitdiff
path: root/lib/stwcs/gui/updatewcs.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2014-05-01 17:44:37 -0400
committerdencheva <dencheva@stsci.edu>2014-05-01 17:44:37 -0400
commit1aea0a057bde417b181538512006c1dfeccbc16e (patch)
treec2700e59e198b77fb6581be3902edb99c2e1c0c0 /lib/stwcs/gui/updatewcs.py
parente2041048d7b03b0a8d9557863a1cfb32592fab1a (diff)
downloadstwcs_hcf-1aea0a057bde417b181538512006c1dfeccbc16e.tar.gz
further changes to move to astropy
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31270 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/gui/updatewcs.py')
-rw-r--r--lib/stwcs/gui/updatewcs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/stwcs/gui/updatewcs.py b/lib/stwcs/gui/updatewcs.py
index 1e5b9d9..f8f10d7 100644
--- a/lib/stwcs/gui/updatewcs.py
+++ b/lib/stwcs/gui/updatewcs.py
@@ -1,7 +1,6 @@
import os
-#import pyfits
-from astropy.io import fits as pyfits
+from astropy.io import fits
from stsci.tools import parseinput
from stsci.tools import fileutil
from stsci.tools import teal
@@ -67,7 +66,7 @@ def run(configObj=None):
#
for file in input:
# Check to insure that there is a valid reference file to be used
- idctab = pyfits.getval(file,'idctab')
+ idctab = fits.getval(file, 'idctab')
if not os.path.exists(fileutil.osfn(idctab)):
print 'No valid distortion reference file ',idctab,' found in ',file,'!'
raise ValueError
@@ -78,7 +77,7 @@ def run(configObj=None):
#
for file in input:
# get instrument name from input file
- instr = pyfits.getval(file,'INSTRUME')
+ instr = fits.getval(file,'INSTRUME')
# make copy of input parameters dict for this file
fdict = cdict.copy()
# Remove any parameter that is not part of this instrument's allowed corrections