Skip to content

Commit 7a4ecc5

Browse files
committed
FIX: Test [circle full]
1 parent 7592e5f commit 7a4ecc5

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

mne/evoked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def plot_joint(
791791
topomap_args=topomap_args,
792792
)
793793

794-
@fill_doc
794+
@verbose
795795
def animate_topomap(
796796
self,
797797
*,

mne/viz/tests/test_topomap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_plot_topomap_animation(capsys):
185185
)
186186
anim._func(1) # _animate has to be tested separately on 'Agg' backend.
187187
out, _ = capsys.readouterr()
188-
assert "extrapolation mode local to 0" in out
188+
assert "extrapolation mode local to mean" in out
189189
assert fig.axes[0].images[0].get_cmap().name == "viridis"
190190

191191

@@ -201,7 +201,7 @@ def test_plot_topomap_animation_csd(capsys):
201201
)
202202
anim._func(1) # _animate has to be tested separately on 'Agg' backend.
203203
out, _ = capsys.readouterr()
204-
assert "extrapolation mode head to 0" in out
204+
assert "extrapolation mode head to mean" in out
205205

206206

207207
@pytest.mark.filterwarnings("ignore:.*No contour levels.*:UserWarning")
@@ -210,7 +210,7 @@ def test_plot_topomap_animation_nirs(fnirs_evoked, capsys):
210210
fig, anim = fnirs_evoked.animate_topomap(ch_type="hbo", verbose="debug")
211211
anim._func(1) # _animate has to be tested separately on 'Agg' backend.
212212
out, _ = capsys.readouterr()
213-
assert "extrapolation mode head to 0" in out
213+
assert "extrapolation mode head to mean" in out
214214
assert len(fig.axes) == 2
215215

216216

mne/viz/topomap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,8 +2489,10 @@ def _plot_evoked_topomap(
24892489
modality = "fnirs"
24902490
else:
24912491
modality = "other"
2492-
# merge data
2493-
all_data, _ = _merge_ch_data(all_data, ch_type, ch_names, modality=modality)
2492+
# merge data (need to copy the names on the first call, modified inplace)
2493+
all_data, _ = _merge_ch_data(
2494+
all_data, ch_type, list(ch_names), modality=modality
2495+
)
24942496
data, ch_names = _merge_ch_data(data, ch_type, ch_names, modality=modality)
24952497
# if ch_type in _fnirs_types:
24962498
if modality != "other":

0 commit comments

Comments
 (0)