[Mne_analysis] block parameter in epoch_plot doesn't work as intended

Lau Møller Andersen lau.andersen at cnru.dk
Thu Feb 18 05:09:35 EST 2016
Search archives:

Dear Developers

The block argument in plot_epochs doesn't work as intended. It keeps 
evaluating the code, and thus, in this particular code (see below), the 
saved output is the same as the input. I am using mne version 0.11.0 and 
running from Spyder in an Anaconda-environment.

Best

Lau

#==============================================================================
# MANUALLY CLEAN EPOCHS
#==============================================================================
epochses = []

for i in range(len(positions)):
     input_file = './3_epochs/' + positions[i] + '_eog_auto_cleaned-epo.fif'
     epochs = mne.read_epochs(input_file)
     mne.epochs.plot_epochs(epochs, picks=[0], block=True) ## only MISC010
     epochses.append(epochs)
     output_file = './4_cleaned_epochs/' + positions[i] + \
                 '_manually_cleaned-epo.fif'
     epochs.save(output_file)


More information about the Mne_analysis mailing list