Skip to content

Commit 8cf6231

Browse files
committed
Merge remote-tracking branch 'upstream/main' into ica
* upstream/main: ENH: Add overrides= parameter to read_raw_brainvision for BIDS header repair (mne-tools#13884)
2 parents d00bc9f + b5cfff0 commit 8cf6231

4 files changed

Lines changed: 481 additions & 37 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
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

Comments
 (0)