[Mne_analysis] Visualization of EDF gives ugly output

Senaka Amarakeerthi senakahks at gmail.com
Sat Apr 6 12:41:55 EDT 2019
Search archives:

        External Email - Use Caution        

Dear Alex,

Thank you for the quick reply. I am trying to channel locations using the
code below.

ch_pure = ['AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8','T8',
'FC6', 'F4', 'F8', 'AF4']
montage_pure = mne.channels.read_montage(kind="emotiv", ch_names=ch_pure,
path='/Volumes/STORAGE/Dropbox/')
raw.set_montage(montage=montage_pure)

emotiv.locs has the following content
 1    0     .181       Fz..
 2    0        0       Cz..
 3    180   .181       Pz..
 4    180   .352       Oz..
 5   -39    .231       F3..
 6    39    .231       F4..
 7   -90    .181       C3..
 8    90    .181       C4..
 9   -90    .352       T3..
10    90    .352       T4..
11  -142    .231       P3..
12   142    .231       P4..
13     0    .352       Fpz.
14     0    .501       EOG.

Anyway I ended up with the error:

  365         upper_names = [ch_name.upper() for ch_name in ch_names]
  366         sel, ch_names_ = zip(*[(i,
ch_names[upper_names.index(e)]) for i, e in--> 367
           enumerate([n.upper() for n in ch_names_])    368
                    if e in upper_names])    369         sel =
list(sel)
ValueError: not enough values to unpack (expected 2, got 0)

Any suport is highly appreciated.

Senaka




On Sat, Apr 6, 2019 at 1:19 PM Alexandre Gramfort <
alexandre.gramfort at inria.fr> wrote:

>         External Email - Use Caution
>
> hi Senaka,
>
> I assume you speak about "spatial_colors=True" option in evoked.plot
>
> if so to get the colors you need to have the channel locations that you
> can so
> far set with set_montage method.
>
> HTH
> Alex
>
>
> On Sat, Apr 6, 2019 at 6:05 AM Senaka Amarakeerthi <senakahks at gmail.com>
> wrote:
>
>>         External Email - Use Caution
>>
>>
>> Dear All,
>>
>> Visualization of  FIF generates nice color graphs and EDF generates ugly
>> black and white graphs. Can we get color graphs for EDF as well?
>>
>> Senaka
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
> _______________________________________________
> 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/20190406/e5817516/attachment-0001.html 


More information about the Mne_analysis mailing list