From 523877cea119672b172675d877d6182be426b64d Mon Sep 17 00:00:00 2001 From: hack Date: Tue, 13 Mar 2012 19:49:14 +0000 Subject: Update to STWCS.WCSUTIL.wcscorr to turn off initialization of WCSCORR table for simple FITS files. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@15608 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/wcscorr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/stwcs/wcsutil') diff --git a/lib/stwcs/wcsutil/wcscorr.py b/lib/stwcs/wcsutil/wcscorr.py index d9d42cd..c767e09 100644 --- a/lib/stwcs/wcsutil/wcscorr.py +++ b/lib/stwcs/wcsutil/wcscorr.py @@ -40,7 +40,8 @@ def init_wcscorr(input, force=False): need_to_close = False # Do not try to generate a WCSCORR table for a simple FITS file - if len(fimg) == 1: + numsci = fileutil.countExtn(fimg) + if len(fimg) == 1 or numsci == 0: return enames = [] -- cgit