Skip to content
/ ATCpy Public

ATCpy provides utilities for reading and writing ATC files in Python.

Notifications You must be signed in to change notification settings

alivecor/ATCpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATCpy

The ATC format is AliveCor's standard for ECG recordings. ATCpy provides utilities for reading and writing ATC files in Python.

ATCpy implements the Alive File Format Specification 1.6.

Requirements

Python 3

Bazel

Bazel

Modules

//atc:atc_reader

Reads and parses an ATC file.

    import atc_reader
    from atc_reader import ATCReader

    reader = ATCReader('path_to_file.atc')
    if reader.status() == atc_reader.READ_SUCCESS:
        leadI = atc_reader.get_ecg_samples(1)
        # ...
    else:
        # handle error.

//atc:atc_writer

Writes ECG data to an ATC file.

    from atc_writer import ATCWriter

    with ATCWriter('path_to_file.atc') as writer:
        writer.write_header(...)
        writer.write_ecg_samples(...)
        ...

About

ATCpy provides utilities for reading and writing ATC files in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published