diff options
author | hack <hack@stsci.edu> | 2011-11-11 16:08:56 -0500 |
---|---|---|
committer | hack <hack@stsci.edu> | 2011-11-11 16:08:56 -0500 |
commit | f76a85324095382f99c02ab5a6663f295acd09cd (patch) | |
tree | 17040853cdd712e2a60a1d4d2d238f589fe6e61c | |
parent | 8e1d663c91b501c8e71eeba430de049a299f937c (diff) | |
download | stwcs_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
-rw-r--r-- | lib/stwcs/wcsutil/wcscorr.py | 2 |
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 |