[Mne_analysis] Get back a reference channel from acticap

Sylvain madec at uni-potsdam.de
Tue Oct 16 10:58:42 EDT 2018
Search archives:

        External Email - Use Caution        

Ok here is the code for replicating the error:


import mne
import pandas as pd
import numpy as np
from mayavi import mlab
%matplotlib inline
%gui qt


# Open EEG file
data_path = '/home/sylvain/Desktop/Participant01'
raw_fname = data_path + '/Participant01.vhdr'

## Error further in the code (when adding reference channel) if I open the 
file this way
#raw_file = mne.io.read_raw_brainvision(raw_fname,
#                                  event_id={"actiCAP Data On": 9999},
#                                  montage = 'standard_1020',
#                                  preload=True)

# The error diseapear if i just use this
raw_file = mne.io.read_raw_brainvision(raw_fname,
                                   event_id={"actiCAP Data On": 9999},
                                   preload=True)


raw_file = mne.io.add_reference_channels(raw_file, ['FCz'])

raw_file.set_montage('standard_1020')
raw_file.plot_sensors()


Do you know where I could stock the file it is quite big?

Thank you

Sylvain

On Tue, 16 Oct 2018 16:50:41 +0200
  Alexandre Gramfort <alexandre.gramfort at inria.fr> wrote:
>        External Email - Use Caution        
> 
> please share a file and code snippet so we better understand the 
>issue
> and we can document it and eventually help people not having this 
>problem again.
> 
> if you have an issue, it's very likely someone else will have it 
>too.
> 
> Alex
> 
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis





More information about the Mne_analysis mailing list