pop_loadbv#
- pop_loadbv(path: str | Path, hdrfile: str | Path | None = None, srange: Any = None, chans: Any = None, metadata: bool = False, *, return_com: Literal[False] = False) dict[str, Any]#
- pop_loadbv(path: str | Path, hdrfile: str | Path | None = None, srange: Any = None, chans: Any = None, metadata: bool = False, *, return_com: Literal[True]) tuple[dict[str, Any], str]
Load a BrainVision
.vhdrrecording.- Parameters:
path (str | Path) – Directory containing the recording, or the full header path.
hdrfile (str | Path | None) – Header filename when
pathis a directory.srange (Any) – One-based first sample, or inclusive
[first, last]range.chans (Any) – One-based channel indices to load, in the requested order.
metadata (bool) – Read metadata and events without loading signal samples.
return_com (bool) – Return
(EEG, command)for command-history workflows.
- Returns:
An EEGPrep EEG dictionary, optionally paired with its replay command.
- Return type:
Notes
Voltage channels are converted to EEGPrep’s microvolt convention. The original BrainVision unit and resolution remain available as
chanlocs[*]["bvunit"]andchanlocs[*]["bvresolution"].