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 | |
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')
-rw-r--r-- | lib/stwcs/__init__.py | 2 | ||||
-rw-r--r-- | lib/stwcs/wcsutil/wcscorr.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/stwcs/__init__.py b/lib/stwcs/__init__.py index 3c8879d..8a3839a 100644 --- a/lib/stwcs/__init__.py +++ b/lib/stwcs/__init__.py @@ -35,7 +35,7 @@ if False : except: pass else : - __version__ = '0.9.1' + __version__ = '0.9.2' try: 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 = [] |