Skip to content

Commit

Permalink
FIX: Pass
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Oct 2, 2023
1 parent 44eb38f commit 10b1028
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mne/viz/_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3046,8 +3046,7 @@ def plot_and_correct(*args, **kwargs):

plot_and_correct(stat_map_img=params["img_idx"], title="", cut_coords=cut_coords)

if show:
plt.show()
plt_show(show)
fig.canvas.mpl_connect(
"button_press_event", partial(_onclick, params=params, verbose=verbose)
)
Expand Down
8 changes: 6 additions & 2 deletions mne/viz/tests/test_3d_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,15 @@ def test_plot_volume_source_estimates_morph():
@testing.requires_testing_data
def test_plot_volume_source_estimates_on_vol_labels():
"""Test plot of source estimate on srcs setup on 2 labels."""
pytest.importorskip("nibabel")
pytest.importorskip("dipy")
pytest.importorskip("nilearn")
raw = read_raw_fif(
data_dir / "MEG" / "sample" / "sample_audvis_trunc_raw.fif", preload=False
)
raw.pick("meg").crop(0, 10).load_data()
epochs = make_fixed_length_epochs(raw, preload=True)
raw.pick("meg").crop(0, 10)
raw.pick(raw.ch_names[::2]).del_proj().load_data()
epochs = make_fixed_length_epochs(raw, preload=True).apply_baseline((None, None))
evoked = epochs.average()
subject = "sample"
bem = read_bem_solution(
Expand Down

0 comments on commit 10b1028

Please sign in to comment.