Skip to main content

ATLAS Flavour Tagging Plotting - Plotting Umami API (PUMA)

Project description

puma - Plotting UMami Api

Code style: black Umami docs PyPI version DOI

codecov Testing workflow Linting workflow Pages workflow Docker build workflow

The Python package puma provides a plotting API for commonly used plots in flavour tagging.

ROC curves Histogram plots Variable vs efficiency

Installation

puma can be installed from PyPI or using the latest code from this repository.

Install latest release from PyPI

pip install puma-hep

The installation from PyPI only allows to install tagged releases, meaning you can not install the latest code from this repo using the above command. If you just want to use a stable release of puma, this is the way to go.

Install latest version from GitHub

pip install https://github.com/umami-hep/puma/archive/main.tar.gz

This will install the latest version of puma, i.e. the current version from the main branch (no matter if it is a release/tagged commit). If you plan on contributing to puma and/or want the latest version possible, this is what you want.

Install for development with uv (recommended)

For development, we recommend using uv, a fast Python package installer and resolver. First, install uv:

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Or with pip (If installing from PyPI, we recommend installing uv into an isolated environment)
pip install uv

Then clone the repository and install puma with development dependencies:

git clone https://github.com/umami-hep/puma.git
cd puma
uv sync --extra dev

This will install puma in editable mode along with all development tools (testing, linting, etc.).

Docker images

The Docker images are built on GitHub and contain the latest version from the main branch.

The container registry with all available tags can be found here.

The puma:latest image is based on python:3.11.10-bullseye and is meant for users who want to use the latest version of puma. For each release, there is a corresponding tagged image. You can start an interactive shell in a container with your current working directory mounted into the container by using one of the commands provided below.

On a machine with Docker installed:

docker run -it --rm -v $PWD:/puma_container -w /puma_container gitlab-registry.cern.ch/aft/training-images/puma-images/puma:latest bash

On a machine/cluster with singularity installed:

singularity shell -B $PWD docker://gitlab-registry.cern.ch/aft/training-images/puma-images/puma:latest

The images are automatically updated via GitHub and pushed to this repository registry.

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

puma_hep-0.5.1.tar.gz (93.7 kB view details)

Uploaded Source

Built Distribution

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

puma_hep-0.5.1-py3-none-any.whl (105.7 kB view details)

Uploaded Python 3

File details

Details for the file puma_hep-0.5.1.tar.gz.

File metadata

  • Download URL: puma_hep-0.5.1.tar.gz
  • Upload date:
  • Size: 93.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for puma_hep-0.5.1.tar.gz
Algorithm Hash digest
SHA256 108c760d16e929f27503e7dde5343e1078f98bb7b7e98b5731811b27bb0c4eab
MD5 1ab13f657e7e0d0d15053cb794a854a7
BLAKE2b-256 9ba53a73c1a5ba1cb10f76a49563eab030599499f5f531d2b949f85c39619c63

See more details on using hashes here.

File details

Details for the file puma_hep-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: puma_hep-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 105.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for puma_hep-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dea8d3b4f041387b2e6884dd68f73849ea1b348b09c165aaec7081b6363a47a2
MD5 e7c112fc47127513fa43eda95de6ab65
BLAKE2b-256 126c1cbbd14d7c197b44f6fab0007e7f79f0f3f71fb8c5f91d1bf42a68ff919f

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