<div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/31837739b38fcaccd266574dc9fcabe3106acd94.png?u=648108"><div>Hi,</div><div><br></div><div>I am trying to combine two edf files with the following code,</div><div><br></div><div>raw0 = mne.io.read_raw_edf(&#39;file1&#39;, preload=True)</div><div>raw1 = mne.io.read_raw_edf(&#39;file2&#39;, preload=True)</div><div><br></div><div>raw = raw0.append(raw1)</div><div><br></div><div>When I try to plot 19th channel with the following code,</div><div><br></div><div><div>data = raw[:, :][0]</div><div>plt.plot(data[19])</div><div>plt.show()</div></div><div><br></div><div>Following set of error comes</div><div><br></div><pre style="box-sizing:border-box;overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;word-wrap:break-word;color:rgb(0,0,0);border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><span class="gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">TypeError</span>                                 Traceback (most recent call last)
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">&lt;ipython-input-214-345e58904e3a&gt;</span> in <span class="gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">&lt;module&gt;</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">()</span>
<span class="gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">----&gt; 1</span><span class="gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)"> </span>data <span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> raw<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">0</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span>
<span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">      2</span> plt<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>plot<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>data<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">19</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="gmail-ansi-green-intense-fg gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">      3</span> plt<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>show<span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>

<span class="gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">TypeError</span>: &#39;NoneType&#39; object is not subscriptable</pre><pre style="box-sizing:border-box;overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;word-wrap:break-word;color:rgb(0,0,0);border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><br></pre><pre style="box-sizing:border-box;overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;word-wrap:break-word;color:rgb(0,0,0);border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><br></pre><pre style="box-sizing:border-box;overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;word-wrap:break-word;color:rgb(0,0,0);border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline">What is wrong with my code?</pre> <br><br><br>‌<div class="mt-signature" style="">
        <a href="https://mailtrack.io/" class="mt-signature-logo" style="text-decoration:none"><img src="https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png" height="14" style=""></a> <font style="color:rgb(153,153,153)">Sent with <a href="https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&amp;utm_medium=signature&amp;utm_campaign=signaturevirality" class="mt-install" style="">Mailtrack</a></font>
        
    
    </div></div>