<div dir="ltr">Hi Per,<div><br></div><div>`.append` follows the semantics of Python lists in operating in place.</div><div>Invoking .append on a Raw object just appends the data:</div><div><br></div><div><div class="gmail_extra">raw1.append(raw2)<br><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Then move on with raw1 which now also incluedes the data from raw2.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">HTH,</div><div class="gmail_quote">Denis</div><div class="gmail_quote"><br></div><div class="gmail_quote">2014-11-09 22:22 GMT+01:00 Per Arnold Lysne <span dir="ltr">&lt;<a href="mailto:lysne@unm.edu" target="_blank">lysne@unm.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<p>​Hello,</p>
<p><br>
</p>
<p>    I am trying to append two raw files and then write their combination into a third file as follows (see
<a href="https://mail.nmr.mgh.harvard.edu/pipermail//mne_analysis/2013-July/001569.html" target="_blank">
https://mail.nmr.mgh.harvard.edu/pipermail//mne_analysis/2013-July/001569.html</a> ):</p>
<p><br>
</p>
<p>import mne</p>
<p><br>
</p>
<p>raw1 = mne.io.raw(raw_file_name_1)</p>
<p>raw2 = mne.io.raw(raw_file_name_2)</p>
<p><br>
</p>
<p>raw = raw1.append(raw2)</p>
<p><br>
</p>
<p>raw.save(combined_file_name)</p>
<p><br>
</p>
<p>But receive the following error at the &#39;save&#39; step: AttributeError: &#39;NoneType&#39; object has no attribute &#39;save&#39;</p>
<p><br>
</p>
<p>This feels like something obvious, but I can&#39;t seem to find it. I am running the python code from the development tree, downloaded about a month ago. I think the relevant file is io/base.py, which is as follows:</p>
<p><br>
</p>
<p>-rw-rw-r-- 1 lysne lysne 75207 Oct 11 13:35 base.py</p>
<p><br>
</p>
<p>Thanks for everyone&#39;s help,</p>
<p><br>
</p>
<p>Per Lysne</p>
<p>University of New Mexico</p>
</div>
</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" 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></div></div>