Skip to content

Instantly share code, notes, and snippets.

View kingjr's full-sized avatar

Jean-Rémi KING kingjr

View GitHub Profile
@kingjr
kingjr / signal_quality.py
Last active March 9, 2016 15:22 — forked from wmvanvliet/signal_quality.py
Evaluation of bad channel detection method
import mne
import numpy as np
from scipy.stats import norm
from matplotlib import pyplot as plt
# Load required sample data
data_path = mne.datasets.sample.data_path()
subjects_dir = data_path + '/subjects'
evoked = mne.read_evokeds(data_path + '/MEG/sample/sample_audvis-ave.fif')[0]
fwd = mne.read_forward_solution(data_path + '/MEG/sample/sample_audvis-meg-eeg-oct-6-fwd.fif', surf_ori=False, force_fixed=True)