summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/instruments.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/instruments.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/instruments.py')
-rw-r--r--lib/stwcs/wcsutil/instruments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stwcs/wcsutil/instruments.py b/lib/stwcs/wcsutil/instruments.py
index 45da046..f662513 100644
--- a/lib/stwcs/wcsutil/instruments.py
+++ b/lib/stwcs/wcsutil/instruments.py
@@ -165,7 +165,7 @@ class ACSWCS(InstrWCS):
'HRC':[[-1.0,0.0],[0.0,1.0]],
'SBC':[[-1.0,0.0],[0.0,1.0]]}
- if self.detector not in parity:
+ if self.detector not in list(parity.keys()):
parity = InstrWCS.set_parity(self)
else:
self.parity = parity[self.detector]
@@ -243,7 +243,7 @@ class WFC3WCS(InstrWCS):
parity = {'UVIS':[[-1.0,0.0],[0.0,1.0]],
'IR':[[-1.0,0.0],[0.0,1.0]]}
- if self.detector not in parity:
+ if self.detector not in list(parity.keys()):
parity = InstrWCS.set_parity(self)
else:
self.parity = parity[self.detector]