mne_bids.read_raw_bids

mne_bids.read_raw_bids(bids_fname, bids_root, return_events=True, verbose=True)[source]

Read BIDS compatible data.

Parameters
bids_fnamestr

Full name of the data file

bids_rootstr

Path to root of the BIDS folder

return_events: bool

Whether to return events or not. Default is True.

verbosebool

The verbosity level

Returns
rawinstance of Raw

The data as MNE-Python Raw object.

eventsndarray, shape = (n_events, 3)

The first column contains the event time in samples and the third column contains the event id. The second column is ignored for now but typically contains the value of the trigger channel either immediately before the event or immediately after.

event_iddict

Dictionary of events in the raw data mapping from the event value to an index.