This project creates a fully-functional demo of CP-SENS project. The demo is to be run inside the DTaaS platform.
This is a poetry-based project. The relevant commands to run the project are:
python -m venv .venv
.\.venv\Scripts\Activate.ps1 # On Windows
source .venv/bin/activate # On Linux
pip install poetry #Specifically install poetry to your system
# If you have poetry installed globally
poetry env activate # shows the command to activate venv
poetry install # installs all required python packages
pylint src tests --rcfile=.pylintrc # runs linting checks
poetry build # builds cp-sens package that can be published on pip
poetry run experiment_1 # run one experiment with real data
The poetry build
will create a .whl
file in the dist/
directory, e.g., dist/cp_sens-0.1.0-py3-none-any.whl
.
Write tests in the tests directory. Be sure to name any new files as test*.py. To run all tests, with coverage:
pytest -m unit # run unit tests
pytest -m integration # run integration tests
pytest # run all the tests
Please see examples for typical usage of the package.