Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronearlerichardson committed Dec 21, 2023
1 parent dad063b commit cd1b6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ieeg/viz/mri.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def _add_electrodes(fig: mne.viz.Brain, info: mne.Info, hemi: str,
n_groups = len(set(groups.values()))
if colors is None:
colors = parula.mat_colors[:n_groups]
elif not isinstance(colors, Iterable) or isinstance(colors, tuple):
elif not np.isscalar(colors) or isinstance(colors, tuple):
colors = [colors] * n_groups
else:
colors = list(colors)
Expand Down

0 comments on commit cd1b6b9

Please sign in to comment.