mne_bids.read_epochs_bids#
- mne_bids.read_epochs_bids(bids_path, extra_params=None, *, on_ch_mismatch='raise', verbose=None)[source]#
Read epoched BIDS data (RecordingType=”epoched”) as
mne.Epochs.EEGLAB
.setfiles are read with the dedicated MNE epochs reader. Continuous formats (.edf/.bdf/.vhdr) flagged"epoched"in the sidecar are sliced into trials of lengthEpochLength(from the sidecar). Whenevents.tsvis present its onsets give the trial starts (sample/begSample/onsetcolumns are tried in that order; trials extending past the recording are dropped with a warning); when absent, the file is uniformly tiled.- Parameters:
- bids_path
BIDSPath Same semantics as
read_raw_bids().- extra_params
None|dict Forwarded to the underlying MNE reader.
- on_ch_mismatch
str See
read_raw_bids().- verbose
bool|str|int|None Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.
- bids_path
- Returns:
- epochs
mne.Epochs The epoched data with BIDS sidecar metadata applied.
- epochs
Notes
This function applies the same sidecars as
read_raw_bids()(channels.tsv,electrodes.tsv,coordsystem.json,scans.tsv,participants.tsv).