Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
edfrd-0.5-py3-none-any.whl (12.6 kB) Copy SHA256 hash SHA256 Wheel py3
edfrd-0.5.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page