- mne_bids.search_folder_for_text(entry, folder, extensions=('.json', '.tsv'), line_numbers=True, return_str=False)#
Find any particular string entry in the text files of a folder.
This is a search function like grep that is formatted nicely for BIDS datasets.
The string to search for
The folder in which to search.
The extensions to search through. Default is
tsvwhich are the BIDS sidecar file types.
Whether to include line numbers.
True, return the fields with “n/a” as a str instead of printing them.