summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/hstwcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stwcs/wcsutil/hstwcs.py')
-rw-r--r--lib/stwcs/wcsutil/hstwcs.py4
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