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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file edfrd-0.5.tar.gz.

File metadata

  • Download URL: edfrd-0.5.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.1 Linux/4.15.0-39-generic

File hashes

Hashes for edfrd-0.5.tar.gz
Algorithm Hash digest
SHA256 1cf4b1e20201603f31ed63ec01a4d5829de01f66dadabba95cb24b7c30628af7
MD5 51d730a307b2a6c2467a2952bbd1c594
BLAKE2b-256 988f8f2144e7dcb714a7ede8d97e1247ff614bc37fbfd5ce698ec88a0d8e60c6

See more details on using hashes here.

File details

Details for the file edfrd-0.5-py3-none-any.whl.

File metadata

  • Download URL: edfrd-0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.7.1 Linux/4.15.0-39-generic

File hashes

Hashes for edfrd-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6998e7dfba1aeb71201214a160e0942bc85e737ddd13ed529edc77d17e9e6a9c
MD5 42d1537236770de985dd1b830ca7c8a7
BLAKE2b-256 54ea09b9dfc6298bbf59ea5f9be78b29d2119886c92dc438e6f37a6e3f0fc318

See more details on using hashes here.

Supported by

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