Added some files, updated some files
This commit is contained in:
@@ -3,7 +3,7 @@ import mne
|
||||
|
||||
from mne_bids import (BIDSPath, read_raw_bids)
|
||||
from utils.ccs_eeg_semesterproject import load_precomputed_badData, load_precomputed_ica
|
||||
from utils.ccs_eeg_utils import read_annotations_core
|
||||
from utils.ccs_eeg_utils_reduced import read_annotations_core
|
||||
|
||||
|
||||
def load_subject(subject, dataset):
|
||||
@@ -137,11 +137,11 @@ def run_ica(raw, dataset, subject, search='manual'):
|
||||
exclude = [0, 2] # Through eog: 0, 2
|
||||
elif subj == '014':
|
||||
exclude = [0, 1, 9] # Through eog: 0,1
|
||||
# ica.plot_overlay(ica_raw, exclude=exclude) # Plot differences through exclude
|
||||
# ica.exclude = exclude
|
||||
# Apply ica to the raw object
|
||||
raw.load_data()
|
||||
# ica.plot_overlay(ica_raw, exclude=exclude)
|
||||
# ica.plot_overlay(ica_raw,
|
||||
# title="Signals before (red) applying ICA and after (black) applying ICA on subject 003",
|
||||
# exclude=exclude)
|
||||
raw = ica.apply(raw, exclude=exclude)
|
||||
# Lastly save the ica to a file
|
||||
folder = "Dataset\\" + dataset + "\\sub-" + subject + "\\ses-" + dataset + "\\eeg\\"
|
||||
|
||||
Reference in New Issue
Block a user