diff options
author | dencheva <dencheva@stsci.edu> | 2014-05-01 17:44:37 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2014-05-01 17:44:37 -0400 |
commit | 1aea0a057bde417b181538512006c1dfeccbc16e (patch) | |
tree | c2700e59e198b77fb6581be3902edb99c2e1c0c0 /lib/stwcs/wcsutil/wcsdiff.py | |
parent | e2041048d7b03b0a8d9557863a1cfb32592fab1a (diff) | |
download | stwcs_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/wcsutil/wcsdiff.py')
-rw-r--r-- | lib/stwcs/wcsutil/wcsdiff.py | 7 |
1 files changed, 3 insertions, 4 deletions
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: |