[Mne_analysis] Visualization of EDF gives ugly output
Marijn van Vliet
w.m.vanvliet at gmail.com
Sat Apr 6 13:08:19 EDT 2019
External Email - Use Caution
Dear Senaka,
for each channel listed in ch_pure, the corresponding location is searched for in the emotiv.locs file. Hence, the channel names in ch_pure should match those in emotiv.locs, which in your case is not the case.
best,
Marijn.
> On 6 Apr 2019, at 19:41, Senaka Amarakeerthi <senakahks at gmail.com> wrote:
>
> 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
>
>
>
> _______________________________________________
> 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