|
a |
|
b/emcp_test.py |
|
|
1 |
from utils import * |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
data_dir = '/Users/kylemathewson/Desktop/data/' |
|
|
9 |
exp = 'P3' |
|
|
10 |
subs = [ '001'] |
|
|
11 |
sessions = ['ActiveWet'] |
|
|
12 |
nsesh = len(sessions) |
|
|
13 |
event_id = {'Target': 1, 'Standard': 2} |
|
|
14 |
|
|
|
15 |
sub = subs[0] |
|
|
16 |
session = sessions[0] |
|
|
17 |
raw = LoadBVData(sub,session,data_dir,exp) |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
epochs = PreProcess(raw,event_id, |
|
|
21 |
emcp_epochs=False, rereference=True, |
|
|
22 |
plot_erp=True, rej_thresh_uV=250, |
|
|
23 |
epoch_time=(-.2,1), baseline=(-.2,0) ) |
|
|
24 |
epochs_new = PreProcess(raw,event_id, |
|
|
25 |
emcp_epochs=True, rereference=True, |
|
|
26 |
plot_erp=True, rej_thresh_uV=250, |
|
|
27 |
epoch_time=(-.2,1), baseline=(-.2,0) ) |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
#plot results |
|
|
31 |
epochs['Target'].plot() |
|
|
32 |
epochs_new['Target'].plot() |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|