Skip to main content

A package designed to process data from movement sensors – accelerometers.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

LABDA Accelerometers

A package designed to process data from movement sensors – accelerometers.

  • Auto-calibration
  • Non-wear detection
  • Metrics: Counts, ENMO
  • Python

See documentation for more details.

Installation

Install using pip install labda-accelerometers.

A Simple Example

import pandas as pd
from labda_accelerometers import Metrics, AutoCalibrate, WearDetection

df = AutoCalibrate().calibrate(df)
print(df)
#>                                         acc_x     acc_y     acc_z
#> datetime  
#> 2021-09-09 00:00:07.009999990+02:00 -0.099318 -0.128671  0.995101
#> 2021-09-09 00:00:07.019999981+02:00  0.076385 -0.267248  0.995101
#> 2021-09-09 00:00:07.029999971+02:00  0.092358 -0.267248  0.927356

epoch = 1 # In seconds

acc_wear = WearDetection(epoch=epoch).from_acceleration(df)
metrics = Metrics(epoch=epoch)

enmo = metrics.enmo(df)
counts = metrics.counts(df)

results = pd.concat([acc_wear, enmo, counts], axis=1)
print(results)
#>                             wear      enmo  counts_x  counts_y  counts_z  counts_vm
#> datetime  
#> 2021-09-09 00:00:07+02:00  False  0.022882         0         5        51  51.244511  
#> 2021-09-09 00:00:08+02:00  False  0.024908         0         0         6   6.000000  
#> 2021-09-09 00:00:09+02:00  False  0.014403         0         0         0   0.000000  

Detailed information on labda-accelerometers processing and features is available here.

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

labda_accelerometers-0.1.1.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

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

labda_accelerometers-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for labda_accelerometers-0.1.1.tar.gz
Algorithm Hash digest
SHA256 91050e66ed640df4acb9bcfccee9e40aebf4dc13b6bcb5cb83769d7e5550d824
MD5 642e5007568a107a3bb264460807a8b9
BLAKE2b-256 2465d1f7e66eb716adacbbe8688e714f313fd2be2f09a20cec16d7347174d0a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for labda_accelerometers-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f860b8ac2a2db04574fd708467b2230203a19a8654ddbb54c8d29e6cb1306b7
MD5 3876379d9e7ee5c11539a4590db19ab8
BLAKE2b-256 df66edec7dd6673f161b0a6bdbafbf6b0d5673f1f1c9cfd099f9528e1dedcc85

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