readegihdr#

readegihdr(filename, forceversion=None)#

Read an EGI Simple Binary header.

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

  • forceversion (int | None) – Optional version from 2 through 7 to use instead of the version stored in the file. This is useful for files whose header reports the wrong member of the same continuous or segmented format family.

Returns:

Header fields corresponding to EEGLAB’s readegihdr structure, plus explicit recording time, sample dtype, and header byte count.

Return type:

dict[str, Any]