Skip to content

Commit 0ba11ce

Browse files
committed
BUG: assert only one axes content to ensure consistency in behaviour
1 parent 5535d94 commit 0ba11ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mne/viz/evoked.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,6 +3017,7 @@ def plot_compare_evokeds(
30173017
if not do_topo:
30183018
# add vacuous "index" (needed for topo) so same code works for both
30193019
axes = [(ax, 0) for ax in axes]
3020+
assert len(axes) == 1
30203021
if np.array(picks).ndim < 2:
30213022
picks = [picks] # enables zipping w/ axes
30223023
else:

0 commit comments

Comments
 (0)