diff options
| author | bsimon <bsimon@stsci.edu> | 2015-05-21 14:58:13 -0400 |
|---|---|---|
| committer | bsimon <bsimon@stsci.edu> | 2015-05-21 14:58:13 -0400 |
| commit | 01b9e5690f2c2d7a3d0c729217c0cf2343227911 (patch) | |
| tree | bde60685cae7a48b5ce8f05094644d4a8f1681d4 /lib/stwcs/wcsutil/instruments.py | |
| parent | a6164f4bbcdef912eb583bd2e4038a1e8e4951da (diff) | |
| download | stwcs_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.py | 4 |
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] |
