mne.io.
read_raw_edf
(input_fname, montage=None, eog=None, misc=None, stim_channel=True, annot=None, annotmap=None, exclude=(), preload=False, verbose=None)[source]¶Reader function for EDF+, BDF, GDF conversion to FIF.
Parameters: | input_fname : str
montage : str | None | instance of Montage
eog : list or tuple
misc : list or tuple
stim_channel : str | int | None
annot : str | None
annotmap : str | None
exclude : list of str
preload : bool or str (default False)
verbose : bool, str, int, or None
|
---|---|
Returns: | raw : Instance of RawEDF
|
See also
mne.io.Raw
Notes
Biosemi devices trigger codes are encoded in bits 1-16 of the status channel, whereas system codes (CMS in/out-of range, battery low, etc.) are coded in bits 16-23 (see http://www.biosemi.com/faq/trigger_signals.htm). To retrieve correct event values (bits 1-16), one could do:
>>> events = mne.find_events(...)
>>> events[:, 2] >>= 8
It is also possible to retrieve system codes, but no particular effort has been made to decode these in MNE.
For GDF files, the stimulus channel is constructed from the events in the
header. You should use keyword stim_channel=-1
to add it at the end of
the channel list. The id numbers of overlapping events are simply combined
through addition. To get the original events from the header, use method
raw.find_edf_events
.