[Mne_analysis] Convert EEG MNE_RawArray to ndarray with time courses

Brown Amumbwe bamumbwe at gmail.com
Tue Aug 27 01:57:45 EDT 2019
Search archives:

        External Email - Use Caution        

Hi,
Basically I have an MNE RawArray object and I would like to convert it to
an ndarray.

I am doing an ICA of an EEG signal with 22 channels. I need an ndarray with
the corresponding time courses of the the Independent Components from the
ICA.

Code Snippet
ica = mne.preprocessing.ICA(method="infomax", random_state=1)
ica.fit(raw_tmp)

data = ica.get_sources(inst=raw_tmp)

data is a RawArray object
Using
cpt = data.get_data()

gives an ndarray but without the time courses of the ICs

Thank you for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190827/d72d69ac/attachment.html 


More information about the Mne_analysis mailing list