Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRG, MAINT: Fix PySurfer-related crash #7295

Merged
merged 4 commits into from
Feb 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions mne/viz/tests/test_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# License: Simplified BSD

import gc
import os.path as op
from pathlib import Path

Expand Down Expand Up @@ -646,12 +647,20 @@ def test_plot_vector_source_estimates():
data = np.random.RandomState(0).rand(n_verts, 3, n_time)
stc = VectorSourceEstimate(data, vertices, 1, 1)

stc.plot('sample', subjects_dir=subjects_dir)
brain = stc.plot('sample', subjects_dir=subjects_dir)
brain.close()
del brain
gc.collect()

with pytest.raises(ValueError, match='use "pos_lims"'):
stc.plot('sample', subjects_dir=subjects_dir,
clim=dict(pos_lims=[1, 2, 3]))
stc.plot('sample', subjects_dir=subjects_dir, hemi='both')
gc.collect()

brain = stc.plot('sample', subjects_dir=subjects_dir, hemi='both')
brain.close()
del brain
gc.collect()


@testing.requires_testing_data
Expand Down