Skip to main content

pyCGM

Python Module for the Conventional Gait Model calculates Kinematics and Center of Mass

The goal of this project is to release an easy to understand conventional gait model that users can implement in their own projects via a single python file. While the project is multiple files, the kinematics code is contained in a single file pyCGM.py. With the update, another kinetics file is also used for the center of mass calculation.

Our aim is to provide researchers and students a tool that can aid in understanding and developing modifications to the conventional gait model through python without much more.

The kinematics are validated against Nexus 1.8, and file types are known from Nexus 1.8. Newer C3D files may not work (but files re-exported from Mokka usually work).

How to use?

For getting started, please check the WIKI on github

Requirements:

  • Python 2.7 or Python 3
  • Numpy
  • Scipy (only if using the pipeline operations)

Requirements for HPC:

  • Python 2.7
  • Numpy
  • MPI Preferably Linux (MPI is not as simple to setup on windows)

Uses a modified version of the c3d.py loader from github. https://pypi.python.org/pypi/c3d/0.2.1

Credits:

Originally developed in the Digital Human Research Center at the Advanced Institutes of Convergence Technology (AICT), Seoul National University http://aict.snu.ac.kr

Project Lead: Mathew Schwartz (umcadop at gmail) For issues, use github or email me directly

Contributors: Neil M. Thomas, Philippe C. Dixon, Seungeun Yeon (연승은),Filipe Alves Caixeta, Robert Van-Wesep

Reference

Read about this code and if you find it useful in your work please cite:

Schwartz, Mathew, and Philippe C. Dixon. "The effect of subject measurement error on joint kinematics in the conventional gait model: Insights from the open-source pyCGM tool using high performance computing methods." PloS one 13.1 (2018): e0189984. https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0189984

Bibtex:

@article{schwartz2018effect, title={The effect of subject measurement error on joint kinematics in the conventional gait model: Insights from the open-source pyCGM tool using high performance computing methods}, author={Schwartz, Mathew and Dixon, Philippe C}, journal={PloS one}, volume={13}, number={1}, pages={e0189984}, year={2018}, publisher={Public Library of Science} }

Metadata

Release files for pycgm 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycgm 1.0
File Size Uploaded
pyCGM-1.0.tar.gz 80.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycgm 1.0
File Interpreter ABI Platform
pyCGM-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 167.5 kB

Release files / pyCGM-1.0.tar.gz

Download URL pyCGM-1.0.tar.gz
Size 80.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dc3ba377f523c84ab51efad672fecfd5081e2916dd30741077411857774c8cd7
BLAKE2b-256 checksum
How to use checksums
69fff9478f5d2df8703b63fdc72eb52edbae5f6e58528ea1b1fd314fc93a6bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.3

Release files / pyCGM-1.0-py3-none-any.whl

Download URL pyCGM-1.0-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ba7fe88e3858182da671e145c69ebc7f69142ad2ce3b6b93e96c1dd183667d3
BLAKE2b-256 checksum
How to use checksums
4960cf658db637d3dd73a675e7492e10f6302347a8549d3c029e948717d71906
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page