summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/headerlet.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2014-04-28 15:44:02 -0400
committerdencheva <dencheva@stsci.edu>2014-04-28 15:44:02 -0400
commita4081a38404b8759a185638fb49687c196153464 (patch)
tree8313dd70d6493dae50854a1ffb19b68c7b3d8520 /lib/stwcs/wcsutil/headerlet.py
parentd7256629cc01af99cb5e3be70a64000f6d2fb0dc (diff)
downloadstwcs_hcf-a4081a38404b8759a185638fb49687c196153464.tar.gz
changes to use astropy instead of pyfits and pywcs
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31240 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/headerlet.py')
-rw-r--r--lib/stwcs/wcsutil/headerlet.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py
index c2abad0..971efd5 100644
--- a/lib/stwcs/wcsutil/headerlet.py
+++ b/lib/stwcs/wcsutil/headerlet.py
@@ -19,8 +19,10 @@ import copy
import time
import numpy as np
-import pyfits
-import pywcs
+from astropy.io import fits as pyfits
+#import pywcs
+from astropy import wcs as pywcs
+from astropy.utils import lazyproperty
import altwcs
import wcscorr
@@ -2679,7 +2681,7 @@ class HeaderletHDU(pyfits.hdu.nonstandard.FitsHDU):
_extension = 'HDRLET'
- @pyfits.util.lazyproperty
+ @lazyproperty
def headerlet(self):
"""Return the encapsulated headerlet as a Headerlet object.