pop_importbids#

pop_importbids(path, *, return_com=False, gui=False, renderer=None, return_study=False, **kwargs)#

Load one or more EEG files from a BIDS dataset.

EDF and BDF files are read with pop_biosig. TSV sidecars are decoded as UTF-8, then as Latin-1 when the bytes are not UTF-8. JSON sidecars stay UTF-8, and a leading UTF-8 BOM is removed.

gui=True shows the options dialog from pop_importbids.m lines 104-164. subjects=[1, 2] selects 1-based rows of participants.tsv (or sorted sub-* folders when that file is missing), the same indices the dialog records. return_study=True returns an in-memory STUDY. EEGLAB also copies every dataset into derivatives/eeglab (pop_importbids.m lines 839 and 892). This function does not write that copy. A folder import opened from the dialog records [STUDY, ALLEEG] = pop_importbids(...) with return_study on, matching that return.

Parameters:
Return type:

Any