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/wcsutil/wcsdiff.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/stwcs/wcsutil/wcsdiff.py') diff --git a/lib/stwcs/wcsutil/wcsdiff.py b/lib/stwcs/wcsutil/wcsdiff.py index f027df2..cfc2d66 100644 --- a/lib/stwcs/wcsutil/wcsdiff.py +++ b/lib/stwcs/wcsutil/wcsdiff.py @@ -1,8 +1,7 @@ from __future__ import print_function -#import pywcs from astropy import wcs as pywcs from collections import OrderedDict -from astropy.io import fits as pyfits +from astropy.io import fits from .headerlet import parse_filename import numpy as np @@ -127,10 +126,10 @@ def is_wcs_identical(scifile, file2, sciextlist, fextlist, scikey=" ", def get_rootname(fname): """ - returns the value of ROOTNAME or DESTIM + Returns the value of ROOTNAME or DESTIM """ - hdr = pyfits.getheader(fname) + hdr = fits.getheader(fname) try: rootname = hdr['ROOTNAME'] except KeyError: -- cgit