[Mne_analysis] Error in combining edf files

Senaka Amarakeerthi senakahks at gmail.com
Sun Dec 3 20:51:36 EST 2017
Search archives:

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 


More information about the Mne_analysis mailing list