Skip to main content

Merge the lab.js csv file and the edf file.

Project description

labedf.py

Merge the lab.js csv file and the edf file.

Installation

pip install labedf

How to Use

from labedf import csv2,edf2,set2

lab.js csv + edf file → merged edf file

csv2.merge_csv2edf("./xxx.edf","./labjs.csv","./ex.edf")

Optional Arguments

merged edf file → hdf file

edf2.split_annotations_edf2hdf("./ex.edf","./ex.hdf5",is_groupby=True)

Optional Arguments

  • is_groupby : GROUP BY (default value = False)
  • is_overwrite : overwite a file(default value = False)
  • before_preprocessing_func : preprocessing function
    • type : list[ndarray] -> (list[ndarray] | Any)
  • after_preprocessing_func(function?) : Preprocess the signals split by annotations. ndarray
    • type : [signals:ndarray, label:str] -> ndarray
  • others

merged set file → hdf file

.set(EEGLAB) files can be combined into hdf file.

set2.merge_set2hdf("./merged_0.set", #input path
                    "./ex.h5", #export path
                    labels = ["0","1"],
                    is_overwrite = False, # hdf overwrite
                    is_groupby = True) # group by

Optional Arguments

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

labedf-1.2.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

labedf-1.2.0-py3-none-any.whl (7.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