Skip to content

Commit

Permalink
MRG, ENH: Speed up brain test (#9422)
Browse files Browse the repository at this point in the history
* ENH: Speed up brain test

* FIX: Object
  • Loading branch information
larsoner authored May 24, 2021
1 parent c75e81e commit 3384bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne/tests/test_epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2764,7 +2764,8 @@ def test_metadata(tmpdir):
chs = ['a', 'b']
info = create_info(chs, 1000)
meta = np.array([[1.] * 5 + [3.] * 5,
['a'] * 2 + ['b'] * 3 + ['c'] * 3 + ['µ'] * 2]).T
['a'] * 2 + ['b'] * 3 + ['c'] * 3 + ['µ'] * 2],
dtype='object').T
meta = DataFrame(meta, columns=['num', 'letter'])
meta['num'] = np.array(meta['num'], float)
events = np.arange(meta.shape[0])
Expand Down
1 change: 1 addition & 0 deletions mne/viz/_brain/tests/test_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_notebook_interactive(renderer_notebook, brain_gc, nbexec):
subjects_dir = os.path.join(data_path, 'subjects')
fname_stc = os.path.join(sample_dir, 'sample_audvis_trunc-meg')
stc = mne.read_source_estimate(fname_stc, subject='sample')
stc.crop(0.1, 0.11)
initial_time = 0.13
mne.viz.set_3d_backend('notebook')
brain_class = mne.viz.get_brain_class()
Expand Down

0 comments on commit 3384bbc

Please sign in to comment.