Skip to content

Commit

Permalink
FIX: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Aug 7, 2019
1 parent eba3efd commit 1bcba81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions 05a-run_ica.py
Expand Up @@ -11,6 +11,9 @@

import os.path as op
import itertools
import warnings

import numpy as np

import mne
from mne.report import Report
Expand Down Expand Up @@ -73,6 +76,11 @@ def run_ica(subject, session=None):

events, event_id = mne.events_from_annotations(raw)

if len(np.unique(events[:, 0])) != len(events):
warnings.warn('Events are unique. Uniqifying them')
_, idx = np.unique(events[:, 0], return_index=True)
events = events[idx]

if "eeg" in config.ch_types or config.kind == 'eeg':
raw.set_eeg_reference(projection=True)
del raw_list
Expand Down
1 change: 0 additions & 1 deletion config.py
Expand Up @@ -34,7 +34,6 @@
# If running the scripts from a notebook or spyder
# run %matplotlib qt in the command line to get the plots in extra windows

plot = True
plot = False


Expand Down
5 changes: 0 additions & 5 deletions tests/configs/config_ds001971.py
Expand Up @@ -14,15 +14,10 @@

study_name = 'ds001971'
task = 'AudioCueWalkingStudy'
kind = 'eeg'
plot = False
reject = {'eeg': 150e-6}
conditions = ['left', 'right']
decoding_conditions = [('left', 'right')]
use_ssp = False
use_ica = False


subjects_list = ['001']

runs = ['01']

0 comments on commit 1bcba81

Please sign in to comment.