edfio.read_edf#
- edfio.read_edf(edf_file, lazy_load_data='auto', *, header_encoding='ascii')[source]#
Read an EDF file into an
Edfobject.If a file-like object is passed, its stream position is moved to EOF.
- Parameters:
- edf_file
Path|str|io.BufferedReader|io.BytesIO The file location (path object or string) or file-like object to read from.
- lazy_load_databool | {“auto”}, default: “auto”
If
True, the raw signal data is not loaded into memory until it is accessed. IfFalse, the data is loaded immediately. If"auto", the data is loaded lazily if the specified edf_file represents a local path and the extension is not “.bdf” and eagerly otherwise.- header_encoding
str, default: “ascii” The character encoding to use when reading header fields.
- edf_file
- Returns: