[Mne_analysis] Loading the montage on mne-python

Francesco Mattioli francesco.mttl at gmail.com
Sun Mar 22 06:03:36 EDT 2020
Search archives:

        External Email - Use Caution        

I solved the problem! I leave the solution in case anyone needs it.

map = {
    'Fc5.': 'FC5', 'Fc3.': 'FC3', 'Fc1.': 'FC1', 'Fcz.': 'FCz', 'Fc2.': 'FC2',
    'Fc4.': 'FC4', 'Fc6.': 'FC6', 'C5..': 'C5', 'C3..': 'C3', 'C1..': 'C1',
    'Cz..': 'Cz', 'C2..': 'C2', 'C4..': 'C4', 'C6..': 'C6', 'Cp5.': 'CP5',
    'Cp3.': 'CP3', 'Cp1.': 'CP1', 'Cpz.': 'CPz', 'Cp2.': 'CP2', 'Cp4.': 'CP4',
    'Cp6.': 'CP6', 'Fp1.': 'Fp1', 'Fpz.': 'Fpz', 'Fp2.': 'Fp2', 'Af7.': 'AF7',
    'Af3.': 'AF3', 'Afz.': 'AFz', 'Af4.': 'AF4', 'Af8.': 'AF8', 'F7..': 'F7',
    'F5..': 'F5', 'F3..': 'F3', 'F1..': 'F1', 'Fz..': 'Fz', 'F2..': 'F2',
    'F4..': 'F4', 'F6..': 'F6', 'F8..': 'F8', 'Ft7.': 'FT7', 'Ft8.': 'FT8',
    'T7..': 'T7', 'T8..': 'T8', 'T9..': 'T9', 'T10.': 'T10', 'Tp7.': 'TP7',
    'Tp8.': 'TP8', 'P7..': 'P7', 'P5..': 'P5', 'P3..': 'P3', 'P1..': 'P1',
    'Pz..': 'Pz', 'P2..': 'P2', 'P4..': 'P4', 'P6..': 'P6', 'P8..': 'P8',
    'Po7.': 'PO7', 'Po3.': 'PO3', 'Poz.': 'POz', 'Po4.': 'PO4', 'Po8.': 'PO8',
    'O1..': 'O1', 'Oz..': 'Oz', 'O2..': 'O2', 'Iz..': 'Iz'}

raw.rename_channels(map)
raw.set_montage('standard_1005')

Thank you for your patience,

Francesco Mattioli

I'm trying to work without distractions. If I do not respond immediately,
drink a cup of tea and be patient. Great ideas need deep work!

ᐧ

Il giorno sab 21 mar 2020 alle ore 18:30 Francesco Mattioli <
francesco.mttl at gmail.com> ha scritto:

> I have already tried, that does not solve my problem, I have to apply an
> ICA and display the independent components on the scalp. With the function:
>
> ica.plot_properties(raw, picks=[x,y])
>
> But when i run I get this error back in the console:
> WARNING:root:Did not find any electrode locations (in the info object),
> will attempt to use digitization points instead. However, if digitization
> points do not correspond to the EEG electrodes, this will lead to bad
> results. Please verify that the sensor locations in the plot are accurate.
>
> Francesco Mattioli
>
> I'm trying to work without distractions. If I do not respond immediately,
> drink a cup of tea and be patient. Great ideas need deep work!
>
>>
> Il giorno sab 21 mar 2020 alle ore 18:16 Alexandre Gramfort <
> alexandre.gramfort at inria.fr> ha scritto:
>
>>         External Email - Use Caution
>>
>> Please copy code from this page :
>>
>>
>> https://mne.tools/stable/auto_examples/decoding/plot_decoding_csp_eeg.html#sphx-glr-auto-examples-decoding-plot-decoding-csp-eeg-py
>>
>>
>> if you use 0.19.2
>>
>> eegbci.standardize(raw)
>>
>> if from the dev version.
>>
>> Alex
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200322/efb52273/attachment-0001.html 


More information about the Mne_analysis mailing list