Python module for reading GT3X/AGDC file format data
Project description
pygt3x
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
Release history Release notifications | RSS feed
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.2.tar.gz
(21.1 kB
view hashes)
Built Distribution
pygt3x-0.4.2-py3-none-any.whl
(22.1 kB
view hashes)