eegdash.io.brainvision module#
MNE’s BrainVision reader, told by overrides= (MNE 1.13, mne-python#13884) which files to read.
A .vhdr whose DataFile=/MarkerFile= name pre-BIDS files or git-annex
keys is read as it is: overrides() names the recording’s own files and MNE
reads them. Rewriting the cached header made every session download it again
and let a second process read it half written.
- eegdash.io.brainvision.companion_names(vhdr_fname) list[tuple[str, ...]][source]
Return the candidate names of the data file and of the marker file, best first.
The header’s
DataFile=/MarkerFile=when it is a plain file name (not an annex key), then the BIDS name (<stem>.eeg,<stem>.vmrk), which is all there is when the header cannot be read.
- eegdash.io.brainvision.overrides(vhdr_fname) dict[source]
Return the
overridesthat pointvhdr_fnameat its own files.{}when the header’sDataFile=andMarkerFile=are right. Only names are returned; MNE resolves them against the header’s folder. The header is read, never written.
- eegdash.io.brainvision.read_raw_brainvision(vhdr_fname, **kwargs)[source]
Read with
mne.io.read_raw_brainvision(), passingoverrides().