From f76a85324095382f99c02ab5a6663f295acd09cd Mon Sep 17 00:00:00 2001 From: hack Date: Fri, 11 Nov 2011 21:08:56 +0000 Subject: Update to STWCS.wcsutil.wcscorr to fix a (serious) bug that affects updating the WCSCORR table. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@14007 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/wcscorr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/wcsutil') diff --git a/lib/stwcs/wcsutil/wcscorr.py b/lib/stwcs/wcsutil/wcscorr.py index 85351e3..bdca38e 100644 --- a/lib/stwcs/wcsutil/wcscorr.py +++ b/lib/stwcs/wcsutil/wcscorr.py @@ -290,7 +290,7 @@ def update_wcscorr(dest, source=None, extname='SCI', wcs_id=None, active=True): for letter in wnames: if wnames[letter] == wcs_id: wkeys.append(letter) - if len(wkeys) > 1: + if len(wkeys) > 1 and ' ' in wkeys: wkeys.remove(' ') wcs_keys = wkeys -- cgit