Skip to main content

*Eargait* provides a set of algorithms and functions to process IMU data recorded with ear-worn IMU sensors and to estimate characteristic gait parameters.

Project description

PyPI Documentation Status Test and Lint Code style: black PyPI - Downloads docs

Eargait - The Gait Analysis Package for Ear-Worn IMU Sensors !

Eargait provides a set of algorithms and functions to process IMU data recorded with ear-worn IMU sensors and to estimate characteristic gait parameters.

analyze your IMU data recorded with hearing aid integrated IMU sensors.

(Link for docs online is currently not working)

Getting started

Prerequisites

Eargait only supports Python 3.7 and newer. First, install a compatible version of Python.

Set up athe the virtual environment

We recommend installing the packages in a virtual environment (e.g. conda/Anaconda). For more information regarding Anaconda, please visit Anaconda.com.
If you want to install the packages directly on the local python version, directly go to Install Packages

If you are familiar with virtual environments you can ``also use any other type of virtual environment. Furthermore, you can also directly install the python packages on the local python version, however, we would not recommend doing so.

In PyCharm
See documentation.

Shell/Terminal
First, verify that you have a working conda installation. Open a terminal/shell and type

conda env list

If an error message similar to the one below is displayed, you probably do not have a working conda version installed.

conda: command not found

In the shell/terminal:

conda create --no-default-packages -n gait_analysis python=3.8

gait_analysis is the name of the virtual environment. This environment can now also be included in PyCharm, as described See here by using the existing environment option.
To check, whether the virtual environment has been created successfully, run again:

conda env list

The environment gait_analysis should now be displayed.
Activate conda environment and install packages (see below).

conda activate gait_analysis

For more help: Conda Documentation

Install Packages

If you are using the conda environment, activate environment (in shell/terminal) (see above). You can also install the packages directly on the local python version of the computer.

Update pip

pip install --upgrade pip 

signialib

Within the shell/terminal, go to the Signia directory by

cd my_local_path/signialib

my_local_path should be changed to the local path of the computer, where the Signia package is saved.
Then install the package with:

pip install .

eargait

Change to the local directory of Eargait with:

cd my_local_path/eargait

Then install the package with:

pip install -e .

Check successful installation

To check whether the installation was successful, run the following line directly after installing eargait in the same shell/terminal:

python examples/check_installation/check_installation.py

Should return: Installation was successful!

Poetry Environment

If you are using poetry and want add the package to you existing poetry environment, run:

poetry add eargait

Dev Setup

We are using poetry to manage dependencies and poethepoet to run and manage dev tasks.

To set up the dev environment including the required dependencies for using eargait run the following commands:

git clone https://github.com/mad-lab-fau/eargait
cd eargait
poetry install

Afterwards you can start to develop and change things. If you want to run tests, format your code, build the docs, ..., you can run one of the following poethepoet commands

CONFIGURED TASKS
  format         
  lint           Lint all files with Prospector.
  check          Check all potential format and linting issues.
  test           Run Pytest with coverage.
  docs           Build the html docs using Sphinx.
  bump_version   

by calling

poetry run poe <command name>

Contribution

The entire development is managed via GitHub. If you run into any issues, want to discuss certain decisions, want to contribute features or feature requests, just reach out to us by opening a new issue.

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

eargait-0.2.0.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

eargait-0.2.0-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file eargait-0.2.0.tar.gz.

File metadata

  • Download URL: eargait-0.2.0.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.13 Darwin/21.6.0

File hashes

Hashes for eargait-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5fd3f45afc3cc712bf2ce50efe7733e0ae9217e75aa5c2754eb9ea129d09ab1b
MD5 4127aa1b6aa28f234354eef2849aa2d0
BLAKE2b-256 5d10f9bdfdb32f2b63775485553740bfcd3b0588cbc388313cb5835c07d5e831

See more details on using hashes here.

File details

Details for the file eargait-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: eargait-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 47.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.13 Darwin/21.6.0

File hashes

Hashes for eargait-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22662bc758ac279ffe891497be2e72c062016f6c18de1806c0ada80b90f82176
MD5 8f82cfc0a63ff5ca0e0115a59832b0b6
BLAKE2b-256 841b6d298f207e218c4465b9b190f50ffc026cd83a1878e4bf6af53ffd0ff518

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