From 4d45636b0d7f6921d9f32258d35c4a0718c9767e Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 16 Dec 2008 17:32:17 +0000 Subject: Fixed bugs git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7384 fe389314-cf27-0410-b35b-8c050e845b92 --- wcsutil/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wcsutil/__init__.py') diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py index c43f86e..e406a9a 100644 --- a/wcsutil/__init__.py +++ b/wcsutil/__init__.py @@ -100,7 +100,8 @@ class HSTWCS(WCS): self.dec_targ = primhdr.get('DEC_TARG', None) self.filename = primhdr.get('FILENAME', "") self.detector = primhdr.get('DETECTOR', None) - + + def readIDCCoeffs(self, header): """ Reads in first order IDCTAB coefficients if present in the header @@ -123,9 +124,9 @@ class HSTWCS(WCS): # Some of the instrument's attributes are recorded in the primary header and # were already set, (e.g. 'DETECTOR'), the code below is a check for that case. if not self.__getattribute__(key): - print '%s object has no attribute %s' % (insobj.__class__.__name__, key) - else: raise + else: + pass else: raise KeyError, "Unsupported instrument - %s" %self.instrument -- cgit