summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/headerlet.py
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2011-10-27 17:13:27 -0400
committerhack <hack@stsci.edu>2011-10-27 17:13:27 -0400
commiteb7ec1682d4b311e68cbd9d66914eeeff1ee3605 (patch)
tree96a27dcfa77020c219692ab700525a5c98acba6e /lib/stwcs/wcsutil/headerlet.py
parent794f1e025c1764b5253078c3aebd5da959ba5682 (diff)
downloadstwcs_hcf-eb7ec1682d4b311e68cbd9d66914eeeff1ee3605.tar.gz
Renamed the 'STWCSVER' keyword in headerlets to 'UPWCSVER' to be consistent with the keyword name used by 'updatewcs'.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13919 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/headerlet.py')
-rw-r--r--lib/stwcs/wcsutil/headerlet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py
index b2b4ca2..95d93dc 100644
--- a/lib/stwcs/wcsutil/headerlet.py
+++ b/lib/stwcs/wcsutil/headerlet.py
@@ -936,9 +936,9 @@ def create_headerlet(filename, sciext='SCI', hdrname=None, destim=None, wcskey="
# get the version of STWCS used to create the WCS of the science file.
try:
- upwcsver = fobj[0].header.ascard['STWCSVER']
+ upwcsver = fobj[0].header.ascard['UPWCSVER']
except KeyError:
- upwcsver = pyfits.Card("STWCSVER", " ",
+ upwcsver = pyfits.Card("UPWCSVER", " ",
"Version of STWCS used to update the WCS")
try:
pywcsver = fobj[0].header.ascard['PYWCSVER']
@@ -2131,7 +2131,7 @@ class Headerlet(pyfits.HDUList):
header = self[0].header
assert('DESTIM' in header and header['DESTIM'].strip())
assert('HDRNAME' in header and header['HDRNAME'].strip())
- assert('STWCSVER' in header)
+ assert('UPWCSVER' in header)
def verify_hdrname(self,dest):
"""