<div dir="ltr">Hi Teon, <div><br></div><div>I try to use savemat to save the raw data, but savemat cannot handle &#39;nonetype&#39; class. I delete all the empty fields from the raw using pop() because I think raw is a dictionary. However, there are still &#39;nonetype&#39; class in raw. Do you know if there is a way to handle it?</div><div><br></div><div>Thank you very much for your time,</div><div><br></div><div>Ning</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 11:10 PM, Teon Brooks <span dir="ltr">&lt;<a href="mailto:teon.brooks@gmail.com" target="_blank">teon.brooks@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ning,<div><br></div><div>The only output file from MNE is the *.fif. We read the multiple formats but we have two options for getting the data out: 1. raw.save with the *.fif, or 2. externally from the numpy.ndarray as an npy with `np.save` or as a mat file with `scipy.io.savemat`. The latter seems like the most suitable if you want to interact with EEGLAB in Matlab.</div><div><br></div><div>HTH,</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div><div>teon</div><div>--</div><div><br></div><div><br></div><div><div>Teon Brooks, PhD Candidate</div><div>NSF Fellow, Chateaubriand Fellow</div><div>Department of Psychology, New York University</div><div>Researcher | OpenBCI</div></div><div><span style="font-size:small">Co-Chair | BraiNY, Greater NYC Chapter of Society for Neuroscience</span><br></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Thu, Mar 31, 2016 at 6:13 PM, chanderler mei <span dir="ltr">&lt;<a href="mailto:semsociaty@gmail.com" target="_blank">semsociaty@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear all,<div><br></div><div>I loaded my eeg data from *.edf format files. After adding a duplicate channel, I want to save the raw data back a *.edf format file: </div><div><br></div><div>raw.save(&#39;sample_edf.edf&#39;,overwrite=True)<br></div><div><br></div><div>The file seems to be much bigger than the original one, from 460,000 KB to 860,000 KB. </div><div><br></div><div>Also, when I try to import it to Matlab EEGLAB, it says: </div><div>EEGLAB error in function getfiletype() at line 1111:</div><div><br></div><div>Operands to be || and &amp;&amp; operators must be convertible to logical scalar values. </div><div><br></div><div>And then I try to open the *.edf file in EDFbrowser, and return error:</div><div>1th character of version field is not a valid 7-bit ASCII character. File is not a valid EDF or BDF file. </div><div><br></div><div>I try to just read the *.edf file to python and save it to another *.edf file, same errors occur. </div><div><br></div><div>QUESTION:</div><div>Is there a format of file I could export my raw data so that it is readable in Matlab EEGLAB? Or is there a way to save the raw data to a readable *.edf file?</div><div><br></div><div>Thank you very much for your time,</div><div><br></div><div>Sincerely,</div><div><br></div><div>Ning</div></div>
<br></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>