summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/headerlet.py
diff options
context:
space:
mode:
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.