diff options
author | hack <hack@stsci.edu> | 2012-03-13 15:49:14 -0400 |
---|---|---|
committer | hack <hack@stsci.edu> | 2012-03-13 15:49:14 -0400 |
commit | 523877cea119672b172675d877d6182be426b64d (patch) | |
tree | c132f71046fc11178774b9b0d39972f8c47cd59d /lib/stwcs/wcsutil | |
parent | 17f195119b3a1c1f90c8a36c7b912d8a60e5ddd1 (diff) | |
download | stwcs_hcf-523877cea119672b172675d877d6182be426b64d.tar.gz |
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
Diffstat (limited to 'lib/stwcs/wcsutil')
-rw-r--r-- | lib/stwcs/wcsutil/wcscorr.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 = [] |