Error in combining edf files

Hi,

I am trying to combine two edf files with the following code,

raw0 = mne.io.read_raw_edf('file1', preload=True)
raw1 = mne.io.read_raw_edf('file2', preload=True)

raw = raw0.append(raw1)

When I try to plot 19th channel with the following code,

data = raw[:, :][0]
plt.plot(data[19])
plt.show()

Following set of error comes

TypeError Traceback (most recent call
last)<ipython-input-214-345e58904e3a> in <module>()----> 1 data =
raw[:, :][0] 2 plt.plot(data[19]) 3 plt.show()
TypeError: 'NoneType' object is not subscriptable

What is wrong with my code?

?
<https://mailtrack.io/> Sent with Mailtrack
<https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171204/5d816697/attachment.html

Hi Senaka,

The append method is an in-place operation so when you assign it to raw,
there is no returned value and therefore it is then mapped to None.

To remedy it, just try `raw0.append(raw1)` and proceed with raw0 for
following steps.

HTH,