summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/hstwcs.py
diff options
context:
space:
mode:
authorbsimon <bsimon@stsci.edu>2015-05-21 14:58:13 -0400
committerbsimon <bsimon@stsci.edu>2015-05-21 14:58:13 -0400
commit01b9e5690f2c2d7a3d0c729217c0cf2343227911 (patch)
treebde60685cae7a48b5ce8f05094644d4a8f1681d4 /lib/stwcs/wcsutil/hstwcs.py
parenta6164f4bbcdef912eb583bd2e4038a1e8e4951da (diff)
downloadstwcs_hcf-01b9e5690f2c2d7a3d0c729217c0cf2343227911.tar.gz
Fixed problems with python 2 to 3 conversion
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40220 fe389314-cf27-0410-b35b-8c050e845b92
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 cb61f1c..a71c33a 100644
--- a/lib/stwcs/wcsutil/hstwcs.py
+++ b/lib/stwcs/wcsutil/hstwcs.py
@@ -137,7 +137,7 @@ class HSTWCS(WCS):
ext=ext)
self.filename = filename
instrument_name = hdr0.get('INSTRUME', 'DEFAULT')
- if instrument_name == 'DEFAULT' or instrument_name not in inst_mappings:
+ if instrument_name == 'DEFAULT' or instrument_name not in list(inst_mappings.keys()):
#['IRAF/ARTDATA','',' ','N/A']:
self.instrument = 'DEFAULT'
else:
@@ -203,7 +203,7 @@ class HSTWCS(WCS):
extension header
"""
- if self.instrument in inst_mappings:
+ if self.instrument in list(inst_mappings.keys()):
inst_kl = inst_mappings[self.instrument]
inst_kl = instruments.__dict__[inst_kl]
insobj = inst_kl(prim_hdr, ext_hdr)