We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2650d7d + e00017b commit 9469ca8Copy full SHA for 9469ca8
.gitignore
@@ -5,3 +5,5 @@ build/
5
*#
6
*~
7
TAGS
8
+.project
9
+.pydevproject
spectral/graphics/spypylab.py
@@ -1126,7 +1126,7 @@ def __str__(self):
1126
else:
1127
interp = self.interpolation
1128
s += ' {0:<20}: {1}\n'.format("Interpolation", interp)
1129
- if meta.has_key('rgb range'):
+ if 'rgb range' in meta:
1130
s += ' {0:<20}:\n'.format("RGB data limits")
1131
for (c, r) in zip('RGB', meta['rgb range']):
1132
s += ' {0}: {1}\n'.format(c, str(r))
0 commit comments