Read and write EDF/EDF+C/BDF/BDF+C files.
Actively maintained. Last release 2 months ago, commits in 7 of the last 26 weeks. A safe choice.
$
pip install edfioedfio
edfio is a Python package for reading and writing EDF and EDF+C files.
It requires Python>=3.9 and NumPy>=1.22 and is available on PyPI:
pip install edfio
- Support for EDF, EDF+C, BDF, and BDF+C including annotations
- Fast I/O thanks to NumPy - read and write GB-sized files in seconds
- Fail late on read: Non-compliant header fields only raise an exception when the corresponding property is accessed.
- Fail early on write: Trying to create a new non-compliant EDF file raises an exception.
- Object-oriented design and type annotations for IDE autocompletion
- Pure Python implementation and 100% test coverage to simplify contributions
Features
- Read/write from/to files or file-like objects
- Modify signal and recording headers
- Drop EDF+ annotations
- Slice recordings (by seconds or annotation texts)
- Drop individual signals
- Anonymize recordings
- BDF file (BioSemi) support
Known limitations
- Discontiguous files (EDF+D) are treated as contiguous ones.