Python package to process wearable accelerometer data
Project description
actipy
Python package to process Axivity3 (.cwa), GENEActiv (.bin) and Actigraph (.gt3x) files.
Installation
Pip
pip install actipy
Conda
# TODO
Usage
import actipy
data, info = actipy.read_device("sample.cwa",
lowpass_hz=20,
calibrate_gravity=True,
detect_nonwear=True,
resample_hz=50)
# data [pandas.DataFrame]
# x y z T
# time
# 2014-05-07 13:29:50.430 -0.514335 0.069683 1.674354 20.000000
# 2014-05-07 13:29:50.450 -0.514335 0.069683 1.674354 20.000000
# 2014-05-07 13:29:50.470 -0.089527 -0.805399 -0.593359 20.000000
# 2014-05-07 13:29:50.490 -0.120995 -0.914784 -0.529480 20.000000
# 2014-05-07 13:29:50.510 -0.105261 -0.836652 -0.641269 20.000000
# ... ... ... ... ...
# info [dict]
# Filename : sample.cwa
# Filesize(MB) : 209
# DeviceID : 1020
# Device : Axivity
# ReadOK : 1
# ReadErrors : 0
# SampleRate : 100.0
# Resampled : 1
# NumTicksBeforeResample: 51391800
# NumTicksAfterResample : 50515693
# DetectNonwear : 1
# NumNonWearEpisodes : 0
# NonwearTime(days) : 0.0
# Calibrated : 1
# CalibErrorBefore(mg) : 84.72403883934021
# CalibErrorAfter(mg) : 3.4564044541239087
# ...
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
actipy-0.0.1.tar.gz
(40.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
actipy-0.0.1-py3-none-any.whl
(43.0 kB
view details)
File details
Details for the file actipy-0.0.1.tar.gz.
File metadata
- Download URL: actipy-0.0.1.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd023b71f6a1b86f405ca178fb99a9c7676d1e8fc9f373370501e3f27f6f693e
|
|
| MD5 |
3df39b11393526a5d3265166e8324aff
|
|
| BLAKE2b-256 |
80757f9981726877b6c3c6bf2ba750ff37f7b45bba64202491a94d133d8ea560
|
File details
Details for the file actipy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: actipy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bed1dc4f72d3d7b29113a58de1fa9542e2e7c9edcfd2ab5076653c64e2406912
|
|
| MD5 |
f2cdd7083d541260e72f57125dcba27d
|
|
| BLAKE2b-256 |
985c772cf9660c0fa1970be2b48b3c50f95aa6974ef4ebdb2baca5480f9b0831
|