readegi#

readegi(filename, data_chunks=None, forceversion=None)#

Read an EGI Simple Binary file (versions 2 through 7).

Parameters:
  • filename (str | Path) – EGI .RAW file.

  • data_chunks (int | Sequence[int] | ndarray | None) – Optional 1-based frame numbers for continuous data or segment numbers for segmented data. Selected chunks are returned in recording order, as in EEGLAB. Empty input selects the whole recording.

  • forceversion (int | None) – Optional header-version override from 2 through 7.

Returns:

(header, trial_data, event_data, segment_category_indices). Low-level data arrays are channel-major with selected segments concatenated along the sample axis, matching EEGLAB’s readegi.

Return type:

tuple[dict[str, Any], ndarray, ndarray, ndarray]