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:
- fname
str
Name of the export file.
- data
numpy.ndarray
,shape
(n_epochs
,n_channels
,n_samples
) Data array containing epochs. Follows the same format as MNE Epochs’ data array.
- sfreq
int
sample frequency of data
- ch_names
list
of
str
Channel names.
- ch_locs
numpy.ndarray
,shape
(n_channels
, 3) Array containing channel locations in Cartesian coordinates (x, y, z)
- annotations
list
,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_channels
list
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_types
list
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)
- fname
See also
Notes
Channel locations are expanded to the full EEGLAB format. For more details see
utils.cart_to_eeglab_sph()
.