From 4313b5ae94a64940805aa93f74909e18e456feb6 Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 19 Nov 2010 20:47:44 +0000 Subject: Added a check for instrument/detector kw when reading tdd coeffs, so that it does not print out a wrong warning to the screen. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11211 fe389314-cf27-0410-b35b-8c050e845b92 --- distortion/mutil.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'distortion') diff --git a/distortion/mutil.py b/distortion/mutil.py index ba6df8f..b5281e5 100644 --- a/distortion/mutil.py +++ b/distortion/mutil.py @@ -76,7 +76,11 @@ def readIDCtab (tabname, chip=1, date=None, direction='forward', detector = 1 # First, read in TDD coeffs if present phdr = ftab['PRIMARY'].header - skew_coeffs = read_tdd_coeffs(phdr) + instrument = phdr['INSTRUME'] + if instrument == 'ACS' and detector == 'WFC': + skew_coeffs = read_tdd_coeffs(phdr) + else: + skew_coeffs = None # Set default filters for SBC if detector == 'SBC': -- cgit