braindecode.mne_ext package¶
Extensions for the MNE library.
Submodules¶
braindecode.mne_ext.signalproc module¶
-
braindecode.mne_ext.signalproc.
concatenate_raws_with_events
(raws)[source]¶ Concatenates mne.io.RawArray objects, respects info[‘events’] attributes and concatenates them correctly. Also does not modify raws[0] inplace as the
concatenate_raws()
function of MNE does.Parameters: raws (list of mne.io.RawArray) Returns: concatenated_raw Return type: mne.io.RawArray
-
braindecode.mne_ext.signalproc.
resample_cnt
(cnt, new_fs)[source]¶ Resample continuous recording using resampy.
Parameters: - cnt (mne.io.RawArray)
- new_fs (float) – New sampling rate.
Returns: resampled – Resampled object.
Return type: mne.io.RawArray
-
braindecode.mne_ext.signalproc.
mne_apply
(func, raw, verbose='WARNING')[source]¶ Apply function to data of mne.io.RawArray.
Parameters: - func (function) – Should accept 2d-array (channels x time) and return modified 2d-array
- raw (mne.io.RawArray)
- verbose (bool) – Whether to log creation of new mne.io.RawArray.
Returns: transformed_set
Return type: Copy of raw with data transformed by given function.