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.
1 parent 251cd81 commit 85d5df6Copy full SHA for 85d5df6
surfer/viz.py
@@ -552,15 +552,15 @@ def _get_geo_params(self, cortex, alpha=1.0):
552
bone=(dict(colormap="bone",
553
vmin=-.2, vmax=2,
554
opacity=alpha), True, True))
555
- if cortex in colormap_map:
+ if isinstance(cortex, dict):
556
+ geo_params = cortex, False, True
557
+ if not geo_params[0].has_key('opacity'):
558
+ geo_params[0]['opacity'] = alpha
559
+ elif cortex in colormap_map:
560
geo_params = colormap_map[cortex]
561
elif cortex in lut_manager.lut_mode_list():
562
geo_params = dict(colormap=cortex, vmin=-1, vmax=2,
563
opacity=alpha), False, True
- elif isinstance(cortex, dict):
- geo_params = cortex, False, True
- if not geo_params[0].has_key('opacity'):
- geo_params[0]['opacity'] = alpha
564
# check for None before checking len:
565
elif cortex is None:
566
geo_params = dict(color=(0.5, 0.5, 0.5),
0 commit comments