mne.io.read_raw_mef#

mne.io.read_raw_mef(fname, *, password='', preload=False, verbose=None)[source]#

Read raw data from MEF3 files.

Parameters:
fnamepath-like

Path to the MEF3 .mefd directory.

passwordstr | bytes | None

Password for encrypted MEF sessions. Use an empty string for unencrypted data.

preloadbool | str

Preload data into memory for data manipulation and faster indexing. If True, the data will be preloaded into memory (fast, requires large amount of memory). If preload is a string, it is the name of a freshly created memory-mapped file used to store the data on the hard drive (slower, requires less memory). An existing file is overwritten. The caller owns the file and is responsible for removing it after the Raw object is no longer in use. For supported Raw readers, the exact string "auto" instead reuses decoded data below the directory configured by mne.set_cache_dir(). Entries persist without a size limit and are mapped copy-on-write. Use Path("auto") for a literal filename.

Changed in version 1.13: Support for the "auto" decoded-data cache was added.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns:
rawinstance of RawMEF

The raw instance. See mne.io.Raw for documentation of attributes and methods.

See also

mne.io.Raw

Documentation of attributes and methods of RawMEF.

Notes

New in v1.12.

Data is read using the pymef package.

Channel types default to sEEG (stereo-EEG). Use raw.set_channel_types() to set appropriate types after loading.

Examples

Read a MEF3 file:

>>> raw = mne.io.read_raw_mef('recording.mefd')