Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# STC>


import mne, eelbrain, os, glob, pickle
import mne, eelbrain, os, glob, pickle, time
import numpy as np
import pandas as pd
%gui qt
Expand Down Expand Up @@ -55,6 +55,7 @@

# ----------------------------------- ICA ------------------------------------ #
# compute and save ICA
tic = time.clock()
for subj in subjects:
print subj
if not os.path.isfile('MEG/%s/%s-ica.fif'%(subj,subj)):
Expand All @@ -67,6 +68,8 @@
ica.fit(raw) #reject=reject
ica.save('MEG/%s/%s-ica.fif'%(subj,subj))
del raw, ica
toc = time.clock()
print tic - toc

# Plot to make rejections
for subj in subjects:
Expand Down