From 1bea0d0bb9a21ec64d62216ae8bb084d7bb158ff Mon Sep 17 00:00:00 2001 From: hack Date: Wed, 11 May 2011 21:25:27 +0000 Subject: 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 --- wcsutil/wcscorr.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wcsutil/wcscorr.py') 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 \ -- cgit