meg=True, eeg=False, eog=True, ecg=True, stim=False, exclude=raw.info['bads']) ############################################################################### # Setup ICA seed decompose data, then access and plot sources. # Instead of the actual number of components here we pass a float value # between 0 and 1 to select n_components by a percentage of # explained variance. ica = ICA(n_components=0.90, max_n_components=100, noise_cov=None, random_state=0) print ica # get epochs tmin, tmax, event_id = -0.2, 0.5, 1 # baseline = None baseline = (None, 0) reject = None events = mne.find_events(raw, stim_channel='STI 014') epochs = mne.Epochs(raw, events, event_id, tmin, tmax,