[Mne_analysis] Visualization of EDF gives ugly output
Marijn van Vliet
w.m.vanvliet at gmail.com
Sun Apr 7 08:30:12 EDT 2019
External Email - Use Caution
Dear Senaka,
are there really dots at the end of all the channel names in emotive.locs? If so, try without them.
best,
Marijn.
> On 7 Apr 2019, at 04:18, Senaka Amarakeerthi <senakahks at gmail.com> wrote:
>
> External Email - Use Caution
>
>
> Dear Marijn,
>
> I adjusted emotiv.locs file according to the ch_pure channel names. Still, I am getting the same error.
>
> emotive.locs after rearranging.
>
> 1 0 0.181 AF3.
> 2 0 0 F7..
> 3 180 0.181 F3..
> 4 180 0.352 FC5.
> 5 -39 0.231 T7..
> 6 39 0.231 P7..
> 7 -90 0.181 O1..
> 8 90 0.181 O2..
> 9 -90 0.352 P8..
> 10 90 0.352 T8..
> 11 -142 0.231 FC6.
> 12 142 0.231 F4..
> 13 0 0.352 F8..
> 14 0 0.501 AF4.
>
> Regards,
>
> Senaka
>
>
> On Sat, Apr 6, 2019 at 10:39 PM Marijn van Vliet <w.m.vanvliet at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> --
> Senaka Amarakeerthi, PhD(Japan)
> Senior Lecturer in Computer Science
> Faculty of Technology
> University of Sri Jayewardenepura
> Nugegoda
> Sri Lanka
> email: senaka at sjp.ac.lk
> Mobile: +(94)-71-2043212
> Office: +(94)-11-2802969
> _______________________________________________
> 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