Skip to content

Latest commit

 

History

History
87 lines (64 loc) · 2.65 KB

README.md

File metadata and controls

87 lines (64 loc) · 2.65 KB

empkins-io

A Python package to load and convert data from EmpkinS sensors.

Description

A longer description of the project goes here... (will follow soon)

Installation

To run the code in this repository first install a compatible version of Python (>= 3.8). Then, install poetry which is used to manage dependencies and packaging.

Once you installed poetry, run the following commands to clone the repository, initialize a virtual env and install all development dependencies:

MaD Lab Gitlab

With ssh access:

git clone [email protected]:empkins/packages/empkins-io.git
cd empkins-io
poetry install

With https access:

git clone https://mad-srv.informatik.uni-erlangen.de/empkins/packages/empkins-io.git
cd empkins-io
poetry install

GitHub

With ssh access:

git clone [email protected]:empkins/empkins-io.git
cd empkins-io
poetry install

With https access:

git clone https://github.com/empkins/empkins-io.git
cd empkins-io
poetry install

Working with the code

Note: In order to use jupyter notebooks with the project you need to register a new IPython kernel associated with the venv of the project (poe register_ipykernel - see below). When creating a notebook, make to sure to select this kernel (top right corner of the notebook).

To run any of the tools required for the development workflow, use the poe commands of the poethepoet task runner:

$ poe
docs                 Build the html docs using Sphinx.
format               Reformat all files using black.
format_check         Check, but not change, formatting using black.
lint                 Lint all files with Prospector.
test                 Run Pytest with coverage.
update_version       Bump the version in pyproject.toml and empkins_io.__init__ .
register_ipykernel   Register a new IPython kernel named `empkins-io` linked to the virtual environment.
remove_ipykernel     Remove the associated IPython kernel.

Note: The poe commands are only available if you are in the virtual environment associated with this project. You can either activate the virtual environment manually (e.g., source .venv/bin/activate) or use the poetry shell command to spawn a new shell with the virtual environment activated.

To add new dependencies you need for this repository:

poetry add <package_name>

To update dependencies after the pyproject.toml file was changed (It is a good idea to run this after a git pull):

poetry update

For more commands see the official documentation.