[Mne_analysis] Overwriting data in raw fif file

Alexandre Gramfort alexandre.gramfort at inria.fr
Mon Jul 17 15:49:39 EDT 2017
Search archives:

Hi Gladia,

> I have some data saved in a matlab array that I'd like to do source
> localization on. I was thinking of replacing the data in an existing raw fif
> file (created in mne-python by reading in a brainvision file) with the
> matlab data, so that the subject-specific info and other parameters in the
> mne raw object will be preserved. I'm doing this using:
>
> rawcopy = raw.copy()
> rawcopy._data = matlabdata

yes that will work but you'll need channel locations for source reconstruction.

> I noticed that raw._data is in a 'memmap' format, whereas matlab data read
> into Python is in the 'array' format. Is it ok to replace the memmap data
> with the array data as I'm doing above, or will it cause processing
> problems? What's the difference between the memmap and array formats?

memmap allows to have the data on disk and not in memory.

HTH
Alex

> Thanks and Best Regards,
> Gladia
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>


More information about the Mne_analysis mailing list