Skip to content

Commit c47a1c8

Browse files
authored
Merge pull request #162 from agramfort/fix_py3k
FIX : py3k viz support now that mayavi seems to actually work with py3
2 parents 6c98cb6 + 96b33d9 commit c47a1c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surfer/viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def _get_geo_params(self, cortex, alpha=1.0):
580580
if 'vmax' not in cortex:
581581
cortex['vmax'] = 2
582582
geo_params = cortex, False, True
583-
elif isinstance(cortex, basestring):
583+
elif isinstance(cortex, string_types):
584584
if cortex in colormap_map:
585585
geo_params = colormap_map[cortex]
586586
elif cortex in lut_manager.lut_mode_list():
@@ -600,7 +600,7 @@ def _get_geo_params(self, cortex, alpha=1.0):
600600
# avoid 4 letter strings and 4-tuples not specifying a
601601
# colormap name in the first position (color can be specified
602602
# as RGBA tuple, but the A value will be dropped by to_rgb()):
603-
elif (len(cortex) == 4) and (isinstance(cortex[0], basestring)):
603+
elif (len(cortex) == 4) and (isinstance(cortex[0], string_types)):
604604
geo_params = dict(colormap=cortex[0], vmin=cortex[1],
605605
vmax=cortex[2], opacity=alpha), cortex[3], True
606606
else:

0 commit comments

Comments
 (0)