eeglabio.raw.export_set#

eeglabio.raw.export_set(fname, data, sfreq, ch_names, ch_locs=None, annotations=None, ref_channels='common', ch_types=None, precision='single')#

Export continuous raw data to EEGLAB’s .set format.

Parameters:
fnamestr

Name of the export file.

datanumpy.ndarray, shape (n_epochs, n_channels, n_samples)

Data array containing epochs. Follows the same format as MNE Epochs’ data array.

sfreqint

sample frequency of data

ch_nameslist of str

Channel names.

ch_locsnumpy.ndarray, shape (n_channels, 3)

Array containing channel locations in Cartesian coordinates (x, y, z)

annotationslist, shape (3, n_annotations)

List containing three annotation subarrays: first array (str) is description/name, second array (float) is onset (starting time in seconds), third array (float) is duration (in seconds) This roughly follows MNE’s Annotations structure.

ref_channelslist of str | str

The name(s) of the channel(s) used to construct the reference, ‘average’ for average reference, or ‘common’ (default) when there’s no specific reference set. Note that this parameter is only used to inform EEGLAB of the existing reference, this method will not reference the data for you.

ch_typeslist of str | None

Channel types e.g. ‘EEG’, ‘MEG’, ‘EMG’, ‘ECG’, ‘Events’, ..

precision“single” or “double”

Precision of the exported data (specifically EEG.data in EEGLAB)

Notes

Channel locations are expanded to the full EEGLAB format. For more details see utils.cart_to_eeglab_sph().