Skip to main content

Python module for reading GT3X/AGDC file format data

Project description

pygt3x

Tests

Python module for reading GT3X/AGDC file format data generated by ActiGraph devices.

Example Usage

To read calibrated accelerometer data, you can use the code snippet below:

from pygt3x.reader import FileReader
from pygt3x.calibration import CalibratedReader

# Read raw data and calibrate
# Dump to pandas data frame
with FileReader("FILENAME") as reader:
    calibrated_reader = CalibratedReader(reader)
    df = calibrated_reader.to_pandas()
    
    # After reading a file, idle sleep mode status can be obtained
    was_idle_sleep_mode_used = reader.idle_sleep_mode_activated
    print(df.head(5))

If your AGDC file contains temperature data, you can read it using:

from pygt3x.reader import FileReader
from pygt3x.calibration import CalibratedReader

with FileReader("FILENAME") as reader:
    calibrated_reader = CalibratedReader(reader)
    df = calibrated_reader.temperature_to_pandas()
    print(df.head(5))

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

pygt3x-0.4.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

pygt3x-0.4.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file pygt3x-0.4.0.tar.gz.

File metadata

  • Download URL: pygt3x-0.4.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for pygt3x-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8e09b89cd6829b212756783a2487e6576880f53709412195d7391b21a7e80437
MD5 64a50973182e338f50a5824a82116f9c
BLAKE2b-256 f56a526c0267efbe2a7766650e4698090b07469e128c2e23bc380aaefc7a1e35

See more details on using hashes here.

File details

Details for the file pygt3x-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pygt3x-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for pygt3x-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87c4a4e37d76d0de3f922507236fe9fdda38b57ef7c792465f133049c4ae3a36
MD5 2d686e77c772d14a4d02d98e5483e0b0
BLAKE2b-256 80f40a3eed4237de09b14f89eec2e8134a302eed70dd508b4c47f1eb00500d71

See more details on using hashes here.

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