Skip to main content

edfrd is a Python 3 software library to read EDF files.

Project description

edfrd

edfrd is a Python 3 software library to read EDF files.

Installation

pip3 install --user edfrd

Usage

from edfrd import read_header, read_data_records

file_path = 'PATH/TO/FILE.edf'

header = read_header(file_path)

data_records = [
    data_record for data_record in
    read_data_records(file_path, header)  # generator
]

for signal_header, signal in zip(header.signals, data_records[0]):
    print(
        signal_header.label,
        signal.size,
        signal.dtype  # numpy int16 array
    )

# optional parameters, default is None
_ = read_data_records(
    file_path,
    header,
    start=0,
    end=header.number_of_data_records
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edfrd-0.5.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

edfrd-0.5-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page