This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mayavi import mlab | |
import numpy as np | |
import mne | |
from mne.datasets import sample | |
from mne.minimum_norm import make_inverse_operator, apply_inverse | |
mne.set_log_level(False) | |
data_path = sample.data_path() | |
subjects_dir = data_path + '/subjects' | |
raw_fname = data_path + '/MEG/sample/sample_audvis_filt-0-40_raw.fif' | |
raw = mne.io.read_raw_fif(raw_fname) # already has an average reference |