Skip to main content

A package to read extract raw acceleration data from .gt3x files.

Project description

Read Raw GT3X file

An implementation of extract raw acceleration data from .gt3x files.

This package was extracted and expanded upon from the work of Shaheen Syed and his repositories https://github.com/shaheen-syed/CNN-Non-Wear-Time-Algorithm and https://github.com/shaheen-syed/ActiGraph-ActiWave-Analysis. They are instrumental in this module creation.

The script gt3x_functions.py contains code to extract raw acceleration data from .gt3x files. Each .gt3x file is basically a zip file containing a log.bin and a info.txt file. The log.bin is a binary file which contains the actual acceleration values. The info.txt file contains the meta-data in text form. When the script is executed, it will create a numpy file that contains the raw data and a time vector.

Usage

The gt3x module needs to be first installed. The most up-to-date one is:

pip install --upgrade git+https://github.com/muschellij2/gt3x.git#egg=gt3x

But can also be installed via pip from PyPi:

pip install gt3x
import gt3x
actigraph_acc, actigraph_time, meta_data = gt3x.read_gt3x('AI9_NEO1F16120039_2017-06-27.gt3x')

Installation

pip3 install -r requirements.txt

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

gt3x-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

gt3x-0.1.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file gt3x-0.1.1.tar.gz.

File metadata

  • Download URL: gt3x-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for gt3x-0.1.1.tar.gz
Algorithm Hash digest
SHA256 14d00f7f0fb8e2e0a9a7fe0f6a20e2bfb75d5bd1bf234a41a6365e76b987b281
MD5 65026f6f333d878f908451b9ca8c363c
BLAKE2b-256 98847b3ba01de50ed3046db05e7c637156ce9d1cfa65d8aedb3bb238f05e2292

See more details on using hashes here.

File details

Details for the file gt3x-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gt3x-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for gt3x-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64f2421030ba442131abdcb7163db13a5c03f1e8e43c0911a9265b31284d01ff
MD5 29d4c76575a3b929c12349893749bc74
BLAKE2b-256 2a28f55be892cf0729b6650c9061f67c180cef8ae3b0459bb55a48325482e864

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