Skip to main content

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

conda install -c oxwear actipy

Note: Use either Pip or Conda, not both.

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
# ...

See the documentation for more details.

License

See license before using this software.

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

actipy-0.0.3.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

actipy-0.0.3-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file actipy-0.0.3.tar.gz.

File metadata

  • Download URL: actipy-0.0.3.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for actipy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d9a144ed74dc4a89a803a399db4d8c367c8fbf6f5500ae570e2bfa3b08352bb8
MD5 dedfeb4f22bdad69c881320e6860ee58
BLAKE2b-256 e126b32662d93828c587849cae1b4667b83e216fad6b3ede063deb445973fc3e

See more details on using hashes here.

File details

Details for the file actipy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: actipy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for actipy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 672264b8271fdc20f343f488701ee1e6a032e237dab5610498694c18b54d64d5
MD5 5960cb46cf7003d96a6152e1133968f6
BLAKE2b-256 f22d857a3d034382719031f1a971acae6331854447cffad74f1fce5f48f2a241

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page