mne_bids.get_bids_path_from_fname¶
- mne_bids.get_bids_path_from_fname(fname, check=True, verbose=None)[source]¶
Retrieve a BIDSPath object from a filename.
- Parameters
- fnamepath-like
The path to parse a
BIDSPath
from.- check
bool
Whether to check if the generated
BIDSPath
complies with the BIDS specification, i.e., whether all included entities and the suffix are valid.- 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.
- Returns
- bids_path
BIDSPath
The BIDS path object.
- bids_path