[Eeglablist] .set format python

周云晖 yhzhou17 at fudan.edu.cn
Mon May 25 07:59:10 PDT 2020


Hi, 

You can the functions in this link (the second, jpapon's answer):
https://urldefense.com/v3/__https://stackoverflow.com/questions/7008608/scipy-io-loadmat-nested-structures-i-e-dictionaries__;!!Mih3wA!TKr3CMEZQ-_hfjA4ntSi28WDOgTCafIpYmlTJcatXgbXpAcv5ZtGeoIFBuncn0Ykv1bRGg$ 

And you can convert the loaded Python dictionary into Pandas DataFrame. Some fields, like EEG['data'] are now in nested list array, and you can use numpy to directly convert it into numpy array. The event and chanlocs field can be converted into nested Pandas DataFrame.

These are my personal experience. Maybe someone being more expert on this will have better idea.

Best,
Yunhui


> -----Original Messages-----
> From: "Rita Matta" <Ritamatta97 at hotmail.com>
> Sent Time: 2020-05-24 04:40:39 (Sunday)
> To: "eeglablist at sccn.ucsd.edu" <eeglablist at sccn.ucsd.edu>
> Cc: 
> Subject: [Eeglablist] .set format python
> 
> 
> Hello, 
> 
> Does anyone know how to load .set format eeg data in python?
> 
> Rita Matta
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu









More information about the eeglablist mailing list