summaryrefslogtreecommitdiff
path: root/wcsutil/wcscorr.py
diff options
context:
space:
mode:
authorhack <hack@stsci.edu>2011-05-11 17:25:27 -0400
committerhack <hack@stsci.edu>2011-05-11 17:25:27 -0400
commit1bea0d0bb9a21ec64d62216ae8bb084d7bb158ff (patch)
tree44272a1c2ec028038203173e6298ae7c3a68fb10 /wcsutil/wcscorr.py
parented98f4db8302a68d3661a146144f3854e0cdf659 (diff)
downloadstwcs_hcf-1bea0d0bb9a21ec64d62216ae8bb084d7bb158ff.tar.gz
Minor update to wcscorr module to not try to create a WCSCORR table when updating a simple FITS file.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12801 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/wcscorr.py')
-rw-r--r--wcsutil/wcscorr.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wcsutil/wcscorr.py b/wcsutil/wcscorr.py
index 61f8461..bab0964 100644
--- a/wcsutil/wcscorr.py
+++ b/wcsutil/wcscorr.py
@@ -37,6 +37,10 @@ def init_wcscorr(input, force=False):
fimg = input
need_to_close = False
+ # Do not try to generate a WCSCORR table for a simple FITS file
+ if len(fimg) == 1:
+ return
+
# Verify that a WCSCORR extension does not already exist...
for extn in fimg:
if extn.header.has_key('extname') and \