+Add ``overrides`` parameter to :func:`mne.io.read_raw_brainvision` for reading non-spec-compliant ``.vhdr`` files where the header contradicts the actual layout (e.g. renamed BIDS siblings, missing ``MarkerFile=``, truncated ``[Channel Infos]``). Accepts a dict with keys ``data_fname``, ``marker_fname``, ``n_channels``, ``sfreq``, ``ch_names``, ``units_fallback``, ``data_orientation``, ``data_format``, and ``binary_format``; see the function docstring for details. Missing or empty ``MarkerFile=`` is now also tolerated natively (per the BV Core Data Format spec). When ``MarkerFile=`` names a path that does not exist (common after BIDS renames), :func:`mne.io.read_raw_brainvision` now falls back to the co-located ``<stem>.vmrk`` next to the ``.vhdr`` and warns, instead of raising :class:`FileNotFoundError`, by `Bruno Aristimunha`_.
0 commit comments