In [ ]:
%matplotlib inline
In [ ]:
import mne
from mne.datasets import sample
from jumeg import suggest_bads
# provide the path of the filename:
data_path = sample.data_path()
subjects_dir = data_path + '/subjects'
raw_fname = str(data_path + '/MEG/sample/sample_audvis_raw.fif')
raw = mne.io.Raw(raw_fname, preload=True)
mybads, raw = suggest_bads(raw, show_raw=False, summary_plot=False)