summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2011-08-09 21:11:30 -0400
committerhack <hack@stsci.edu>2011-08-09 21:11:30 -0400
commit97c43c611a959ad496ec9865a554d0749045be99 (patch)
treea9a4ae732111c0cf032caa15318f2317da305c41 /lib
parent8fa29488b0577ed97eeae6a93919401a1c4c7e10 (diff)
downloadstwcs_hcf-97c43c611a959ad496ec9865a554d0749045be99.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/stwcs/wcsutil/wcscorr.py3
1 files changed, 2 insertions, 1 deletions
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),