Installation

You can install the latest version of the package directly from GitHub using pip or Poetry.

Note

Take a look at the available tagged versions.

pip install "git+https://github.com/INTREPID-hep/DTPatternRecognition.git@[TAG_VERSION]"

To check if the package was installed successfully, run:

pip show DTPatternRecognition

Or simply run dtpr --help

If you want to work with the source and editable installs, you can clone the repo and install in editable mode:

git clone https://github.com/INTREPID-hep/DTPatternRecognition -b [TAG_VERSION]
cd DTPatternRecognition
pip install -e .
poetry add "git+https://github.com/INTREPID-hep/DTPatternRecognition.git@[TAG_VERSION]"

To check if the package was installed successfully, run:

poetry show DTPatternRecognition

Or simply run poetry run dtpr --help

If you want to work with the source and editable installs, you can clone the repository and build the environment with Poetry:

git clone https://github.com/INTREPID-hep/DTPatternRecognition -b [TAG_VERSION]
cd DTPatternRecognition
poetry install
poetry shell

Important

The package requires PyROOT, so you should have it installed and available in your environment. If you are working in a Python virtual environment, ensure to include ROOT in it. For example, to create a venv that can access system-wide ROOT:

python -m venv --system-site-packages ENV_DIR