-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot_helmet.py
41 lines (31 loc) · 1.03 KB
/
plot_helmet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 2 14:47:21 2016
@author: mje
"""
from mne import read_evokeds
from mne.viz import plot_trans
import socket
import mne
import os
# SETUP PATHS AND PREPARE RAW DATA
hostname = socket.gethostname()
if hostname == "wintermute":
data_path = "/home/mje/mnt/caa/scratch/"
else:
data_path = "/projects/MINDLAB2015_MEG-CorticalAlphaAttention/scratch/"
# CHANGE DIR TO SAVE FILES THE RIGTH PLACE
os.chdir(data_path)
subjects_dir = data_path + "fs_subjects_dir/"
save_folder = data_path + "filter_ica_data/"
maxfiltered_folder = data_path + "maxfiltered_data/"
epochs_folder = data_path + "epoched_data/"
tf_folder = data_path + "tf_data/"
mne_folder = data_path + "minimum_norm/"
subject = "0025"
trans_fname = mne_folder + "%s-trans.fif" % subject
epochs = mne.read_epochs(epochs_folder +
"%s_filtered_ica_mc_tsss-epo.fif" % subject,
preload=False)
plot_trans(epochs.info, trans_fname, subject=subject, dig=True,
subjects_dir=subjects_dir)