Skip to content

Commit

Permalink
FIX cortex parameter: matplotlib changed error type (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck authored Dec 15, 2023
1 parent 1554026 commit 46773ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfer/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def _get_geo_params(self, cortex, alpha=1.0):
try: # check if it's a non-string color specification
color = colorConverter.to_rgb(cortex)
geo_params = dict(color=color, opacity=alpha), False, False
except ValueError:
except (ValueError, TypeError):
try:
lut = create_color_lut(cortex)
geo_params = dict(colormap="Greys", opacity=alpha,
Expand Down

0 comments on commit 46773ee

Please sign in to comment.