<div dir="ltr">Thanks for the input! I do indeed need to do some filtering as well, so I guess in this case saving extra raw [filtered] files will be unavoidable.<div><br></div><div>Thanks,</div><div>Steve</div></div><div class="gmail_extra">
<br clear="all"><div><div dir="ltr"><div><br></div><div><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br>
</div></div>
<br><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 6:12 PM, Martin Luessi <span dir="ltr"><<a href="mailto:mluessi@nmr.mgh.harvard.edu" target="_blank">mluessi@nmr.mgh.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Steve,<br>
<br>
Yes, you are right, concatenating Epochs is currently not supported.<br>
Unless you use "preload=True", it won't actually load the data of the<br>
raw file when creating a Raw object. So you should be able to just use a<br>
list of file names when creating Raw and it should work.<br>
<br>
The only time you need "preload=True" is when you want to modify the raw<br>
data, e.g., using filtering. In this case, you could load each raw file,<br>
filter it, save it, and then create a new Raw instance that combines all<br>
the files. Like that, you will only need enough RAM to have a single raw<br>
file fully loaded.<br>
<br>
HTH,<br>
<br>
Martin<br>
<div><div class="h5"><br>
On 04/03/14 09:42, Stephen Politzer-Ahles wrote:<br>
> Hi,<br>
><br>
> Is it possible to concatenate multiple Epochs objects in Python? For<br>
> example, if I load one raw fif file and create an object (let's call it<br>
> epochs1) with three epochs A, B, and C, and then I load another raw fif<br>
> file and create epochs2 with three epochs D, E, and F, what I would like<br>
> to do is combine them into a single object with six epochs A, B, C, D, E, F.<br>
><br>
> I can't find a method for this in the reference and all I see online is<br>
> this github discussion<br>
> <a href="https://github.com/mne-tools/mne-python/issues/120" target="_blank">https://github.com/mne-tools/mne-python/issues/120</a> where it seems like<br>
> this was ultimately not done. Loading multiple raw fif files is not a<br>
> good option for me because my files are very large and I don't have the<br>
> memory to handle it. I suppose another thing I could do is load one raw<br>
> fif file at a time and save its epochs to a new fif file, and then load<br>
> the separate epoched .fif files together (if mne.read_epochs allows<br>
> this) but I am hoping to avoid saving a bunch of files, I'd rather just<br>
> create and concatenate the epochs on the fly if that is possible.<br>
><br>
> Thank you,<br>
> Steve<br>
><br>
> Stephen Politzer-Ahles<br>
> New York University, Abu Dhabi<br>
> Neuroscience of Language Lab<br>
> <a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br>
><br>
><br>
</div></div>> _______________________________________________<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" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
><br>
<br>
<br>
--<br>
Martin Luessi, Ph.D.<br>
<br>
Research Fellow<br>
<br>
Department of Radiology<br>
Athinoula A. Martinos Center for Biomedical Imaging<br>
Massachusetts General Hospital<br>
Harvard Medical School<br>
149 13th Street<br>
Charlestown, MA 02129<br>
<br>
Fax: <a href="tel:%2B1%20617%20726-7422" value="+16177267422">+1 617 726-7422</a><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" 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" 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>