[Mne_analysis] see complete list of annotations {Disarmed}

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed Nov 18 08:48:16 EST 2020
Search archives:

        External Email - Use Caution        

hi,

you can do something like

from collections import Counter
Counter(raw.annotation.description)

HTH
Alex


On Wed, Nov 18, 2020 at 12:35 PM Roberto Petrosino <
roberto.petrosino at uconn.edu> wrote:

>         External Email - Use Caution
>
> Hello everyone,
>
> My question is *very* basic (I think), but I could’t figure it out. I
> would like to know the number of events stored as annotations in my raw file.
> However, when I call the function raw.annotations, I get the following:
>
> raw = mne.io.read_raw_eeglab(raw_fname)
> raw.annotations
> <Annotations | 2030 segments: cross (1005), cross_warm (10), filler (432),
> ...>
>
> There are 7 event codes in total in my file, but I get to see only 3 of
> them. How can I see the total number of events for each code?
>
> Thanks!
>
> —————
> Roberto Petrosino
> he/him/his
> Ph.D., Linguistics
> University of Connecticut
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://secure-web.cisco.com/17VoXS7x6eU0d5MrJxYOXRHtiz1BhE_LmuYOd1qlLCh_9TivPI0niIKwUPKXBbl_-T6tvJ0ro-SRUM6jbltBnXQN_U5QXwGz3aWtrmm_W96TyMe2J-Mh6gdBMaS1cLVRpdnEn_BpWXARqS231vDfBFzHWM5zhMxW8uqtc-4qVarrUPQGhHJzsWya1t7PuLRUaj_279jrM7Jy-McZTm0NbgMBJMz8z5-_7RMteLYDxbBu307sxHfJ701Yb2-Rg16FKzfb-nfzfNR9H4PTI7ou6jg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201118/860ec668/attachment-0001.html 


More information about the Mne_analysis mailing list