From 17f195119b3a1c1f90c8a36c7b912d8a60e5ddd1 Mon Sep 17 00:00:00 2001 From: embray Date: Mon, 27 Feb 2012 18:47:12 +0000 Subject: 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 --- lib/stwcs/wcsutil/headerlet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/stwcs/wcsutil/headerlet.py') 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'], -- cgit