Skip to content

Commit

Permalink
FIX: Maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Feb 5, 2025
1 parent 899f930 commit 671f40b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mne/viz/tests/test_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def test_plot_evoked_field(renderer):
ch_type=t,
)
evoked.plot_field(maps, time=0.1, n_contours=n_contours)
renderer.backend._close_all()

# Test plotting inside an existing Brain figure. Check that units are taken into
# account.
Expand All @@ -204,6 +205,7 @@ def test_plot_evoked_field(renderer):
assert (
fig._surf_maps[0]["surf"]["rr"][0, 0] == scale * maps[0]["surf"]["rr"][0, 0]
)
renderer.backend._close_all()

# Test some methods
fig = evoked.plot_field(maps, time_viewer=True)
Expand All @@ -223,6 +225,7 @@ def test_plot_evoked_field(renderer):

fig = evoked.plot_field(maps, time_viewer=False)
assert isinstance(fig, Figure3D)
renderer.backend._close_all()


@testing.requires_testing_data
Expand Down

0 comments on commit 671f40b

Please sign in to comment.