summaryrefslogtreecommitdiff
path: root/lib/stwcs
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2011-11-11 16:08:56 -0500
committerhack <hack@stsci.edu>2011-11-11 16:08:56 -0500
commitf76a85324095382f99c02ab5a6663f295acd09cd (patch)
tree17040853cdd712e2a60a1d4d2d238f589fe6e61c /lib/stwcs
parent8e1d663c91b501c8e71eeba430de049a299f937c (diff)
downloadstwcs_hcf-f76a85324095382f99c02ab5a6663f295acd09cd.tar.gz
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
Diffstat (limited to 'lib/stwcs')
-rw-r--r--lib/stwcs/wcsutil/wcscorr.py2
1 files changed, 1 insertions, 1 deletions
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