Ergonomics
Ergonomics metrics: REBA score
Installation
pip install ergonomics-metrics
Example
from ergonomics.reba import RebaScore
import requests
import numpy as np
import json
url = 'https://www.dropbox.com/s/e72lwn9n9gkoygj/ergonomics.json?dl=1'
r = requests.get(url)
sample_pose = np.array(r.json()['sample_pose'])
rebaScore = RebaScore()
body_params = rebaScore.get_body_angles_from_pose_right(sample_pose)
arms_params = rebaScore.get_arms_angles_from_pose_right(sample_pose)
rebaScore.set_body(body_params)
score_a, partial_a = rebaScore.compute_score_a()
rebaScore.set_arms(arms_params)
score_b, partial_b = rebaScore.compute_score_b()
score_c, caption = rebaScore.compute_score_c(score_a, score_b)
print("Score A: ", score_a, "Partial: ", partial_a)
print("Score A: ", score_b, "Partial: ", partial_b)
print("Score C: ", score_c, caption)
Test
Pose Left
Neck Score: 2
Trunk Score: 2
Legs Score: 2
Upper Arm Score: 1
Lower Arm Score: 2
Wrist Score: 3
A Score: 4
B Score: 3
C score: 4
REBA score: 4
Pose Right
Neck Score: 2
Trunk Score: 2
Legs Score: 2
Upper Arm Score: 1
Lower Arm Score: 2
Wrist Score: 2
A Score: 4
B Score: 2
C score: 4
REBA score: 4
Rank
[0]'Negligible Risk',
[2-3]'Low Risk. Change may be needed',
[4-7]'Medium Risk. Further Investigate. Change Soon',
[8-10]'High Risk. Investigate and Implement Change',
[11+]'Very High Risk. Implement Change'
Metadata
Release files for ergonomics-metrics 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ergonomics_metrics-0.4.3.tar.gz | 8.4 kB | Without provenance | Details for ergonomics_metrics-0.4.3.tar.gz |
Release files / ergonomics_metrics-0.4.3.tar.gz
| Download URL | ergonomics_metrics-0.4.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52c5343c9a0048cd0ebd271c5a5c90f4998023b8578fd4e0552f866e55cb5ec7
|
|
BLAKE2b-256 checksum How to use checksums |
6edc599c690db137b3b1332a0842eed49d3c08d35fe131b4d7d677e20a157978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3
|
Security for ergonomics-metrics 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.