summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorembray <embray@stsci.edu>2012-02-27 13:47:12 -0500
committerembray <embray@stsci.edu>2012-02-27 13:47:12 -0500
commit17f195119b3a1c1f90c8a36c7b912d8a60e5ddd1 (patch)
tree8b18c200b661d2dba3e3fb2de42d3867341ac8b8
parentbccc58b04ccf675177a94d7042e78413cf1c1586 (diff)
downloadstwcs_hcf-17f195119b3a1c1f90c8a36c7b912d8a60e5ddd1.tar.gz
Fixed the last two minor errors in stwcs--these are mainly just typos (k.key->c.keyword, and removed stray end of line commas that were causing tuple values to be treated as a 1-tuple containing a tuple.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15287 fe389314-cf27-0410-b35b-8c050e845b92
-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 c4bfa22..baf7481 100644
--- a/lib/stwcs/wcsutil/headerlet.py
+++ b/lib/stwcs/wcsutil/headerlet.py
@@ -2017,7 +2017,7 @@ class Headerlet(pyfits.HDUList):
if ((dist_models_equal and (c.keyword in hwcshdr)) or
(not dist_models_equal and
c.keyword not in FITS_STD_KW)):
- if 'DP' not in k.key:
+ if 'DP' not in c.keyword:
fhdr.set(c.keyword, c.value, c.comment,
after=akeywd, before=bkeywd)
else:
@@ -2637,9 +2637,9 @@ class HeaderletHDU(pyfits.hdu.nonstandard.FitsHDU):
hlet.header['DATE'] = (phdu.header['DATE'],
phdu.header.comments['DATE'])
hlet.header['SIPNAME'] = (sipname, 'SIP distortion model name')
- hlet.header['WCSNAME'] = (phdu.header['WCSNAME'], 'WCS name'),
+ hlet.header['WCSNAME'] = (phdu.header['WCSNAME'], 'WCS name')
hlet.header['DISTNAME'] = (phdu.header['DISTNAME'],
- 'Distortion model name'),
+ 'Distortion model name')
hlet.header['NPOLFILE'] = (phdu.header['NPOLFILE'],
phdu.header.comments['NPOLFILE'])
hlet.header['D2IMFILE'] = (phdu.header['D2IMFILE'],