Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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.
Metadata
Release files for labda-accelerometers 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labda_accelerometers-0.1.2.tar.gz | 6.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labda_accelerometers-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 MB
Release files / labda_accelerometers-0.1.2.tar.gz
| Download URL | labda_accelerometers-0.1.2.tar.gz |
|---|---|
| Size | 6.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dea6349f6044f52332184a2125d2a19b3014a727d6b4b9ef4cd0fee7b03c2f7
|
|
BLAKE2b-256 checksum How to use checksums |
52459c6fbaf3ef1976e0ac36fed5befffdeeda768e56893204b0d3072099d22b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|
Release files / labda_accelerometers-0.1.2-py3-none-any.whl
| Download URL | labda_accelerometers-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8171b132bd61cbbf586aba43759af555fc54e86eb2d6c63c830980178251d6f3
|
|
BLAKE2b-256 checksum How to use checksums |
5e1032210e24e9eab89980d63e05cb998d5f36947079a399ddbbd6199c05e5a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|