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, calculate_number_of_data_records=True)
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.6.tar.gz
(5.3 kB
view hashes)
Built Distribution
edfrd-0.6-py3-none-any.whl
(5.7 kB
view hashes)