summaryrefslogtreecommitdiff
path: root/wcsutil/wcscorr.py
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2011-04-05 09:42:56 -0400
committerhack <hack@stsci.edu>2011-04-05 09:42:56 -0400
commit462577895390869011e5aeb22e6afdd55b95c008 (patch)
tree4fc6c59dbd6cfbe59fe3a11636ea6a959f936353 /wcsutil/wcscorr.py
parent9753d368de5771d33cf8dd2ae16e735402ec4298 (diff)
downloadstwcs_hcf-462577895390869011e5aeb22e6afdd55b95c008.tar.gz
The HSTWCS method 'wcs2header' was modified to append the SIP and IDC distortion model keywords to the header using the '.update()' method instead of extending the header with a CardList. This corrected a problem with the CardList not fully updating the original header making the appended cards unaccessible using the dictionary lookup syntax.
The logic for using the 'readModel()' method of HSTWCS was also improved to not try and read the IDCModel when no 'idctab' had been specified in the header. Finally, a small bug was fixed in the 'wcscorr' module for recognizing what rows are available for being updated so that the update will actually occur. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12392 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/wcscorr.py')
-rw-r--r--wcsutil/wcscorr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcsutil/wcscorr.py b/wcsutil/wcscorr.py
index cb0497b..1ff10c5 100644
--- a/wcsutil/wcscorr.py
+++ b/wcsutil/wcscorr.py
@@ -222,7 +222,7 @@ def update_wcscorr(fimg,hdr,selections=None):
# Now, we need to merge this into the existing table
old_table = fimg['WCSCORR']
- rowind = find_wcscorr_row(old_table.data,{'wcs_id':' '})
+ rowind = find_wcscorr_row(old_table.data,{'wcs_id':''})
old_nrows = np.where(rowind)[0][0]
# check to see if there is room for the new row