From 97c43c611a959ad496ec9865a554d0749045be99 Mon Sep 17 00:00:00 2001 From: hack Date: Wed, 10 Aug 2011 01:11:30 +0000 Subject: A problem with the logic initializing the WCSCORR table when no alternate WCS's exist has been fixed. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13554 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/wcscorr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/stwcs/wcsutil') diff --git a/lib/stwcs/wcsutil/wcscorr.py b/lib/stwcs/wcsutil/wcscorr.py index a6b1f94..50d359f 100644 --- a/lib/stwcs/wcsutil/wcscorr.py +++ b/lib/stwcs/wcsutil/wcscorr.py @@ -119,8 +119,9 @@ def init_wcscorr(input, force=False): # TODO: Much of this appears to be redundant with update_wcscorr; consider # merging them... for uwkey in used_wcskeys: - if wkey == ' ': + if uwkey in [' ',''] : break + for extver in xrange(1, numsci + 1): hdr = fimg['SCI', extver].header wcs = stwcs.wcsutil.HSTWCS(fimg, ext=('SCI', extver), -- cgit