Skip to content

Commit 0b9e86e

Browse files
committed
RF: small fix to key check for dictonary
1 parent 913a089 commit 0b9e86e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

surfer/viz.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,12 @@ def _get_geo_params(self, cortex, alpha=1.0):
566566
vmin=-.2, vmax=2,
567567
opacity=alpha), True, True))
568568
if isinstance(cortex, dict):
569-
if not cortex.has_key('opacity'):
569+
if not 'opacity' in cortex:
570570
cortex['opacity'] = alpha
571-
if cortex.has_key('colormap'):
572-
if not cortex.has_key('vmin'):
571+
if 'colormap' in cortex:
572+
if not 'vmin' in cortex:
573573
cortex['vmin'] = -1
574-
if not cortex.has_key('vmax'):
574+
if not 'vmax' in cortex:
575575
cortex['vmax'] = 2
576576
geo_params = cortex, False, True
577577
elif cortex in colormap_map:

0 commit comments

Comments
 (0)