diff options
Diffstat (limited to 'wcsutil/__init__.py')
-rw-r--r-- | wcsutil/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
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 |