From 1aea0a057bde417b181538512006c1dfeccbc16e Mon Sep 17 00:00:00 2001 From: dencheva Date: Thu, 1 May 2014 21:44:37 +0000 Subject: 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 --- lib/stwcs/gui/updatewcs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/stwcs/gui/updatewcs.py') 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 -- cgit