diff options
author | hack <hack@stsci.edu> | 2013-04-30 16:55:57 -0400 |
---|---|---|
committer | hack <hack@stsci.edu> | 2013-04-30 16:55:57 -0400 |
commit | 05d1dce7d577d746482a7cb33d83703ab0b6e769 (patch) | |
tree | a57ddf5997004e18a88ff632a6c3de2b42959c4c /lib/stwcs/wcsutil/hstwcs.py | |
parent | 7d529dbb88ec1e47611373638b72ca8d648246a3 (diff) | |
download | stwcs_hcf-05d1dce7d577d746482a7cb33d83703ab0b6e769.tar.gz |
This update removes all references to .has_key() method, including those for list and dict comprehension, but primarily to work with PyFITS 3.2.dev checked in on 29-Apr-2013. [Trac Ticket #1007]
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@24552 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/hstwcs.py')
-rw-r--r-- | lib/stwcs/wcsutil/hstwcs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stwcs/wcsutil/hstwcs.py b/lib/stwcs/wcsutil/hstwcs.py index c5bdd71..f52c27a 100644 --- a/lib/stwcs/wcsutil/hstwcs.py +++ b/lib/stwcs/wcsutil/hstwcs.py @@ -218,13 +218,13 @@ class HSTWCS(WCS): """ if self.idctab in [None, '', ' ','N/A']: #Keyword idctab is not present in header - check for sip coefficients - if header is not None and header.has_key('IDCSCALE'): + if header is not None and 'IDCSCALE' in header: self._readModelFromHeader(header) else: print "Distortion model is not available: IDCTAB=None\n" self.idcmodel = None elif not os.path.exists(fileutil.osfn(self.idctab)): - if header is not None and header.has_key('IDCSCALE'): + if header is not None and 'IDCSCALE' in header: self._readModelFromHeader(header) else: print 'Distortion model is not available: IDCTAB file %s not found\n' % self.idctab |