Skip to main content

Aligned polarimetry field of the Λc → p π K decay

10.1007/JHEP07(2023)228 10.5281/zenodo.7544989 License

Pixi Badge uv Ruff ty code style: prettier Spelling checked PyPI package Supported Python versions Binder

This repository contains the source code for “$\Lambda_c^+$ polarimetry using the dominant hadronic mode” (2023) by the LHCb Collaboration (10.1007/JHEP07(2023)228). It uses ampform-dpd to formulate symbolic amplitude models for the decay $\Lambda^+_c \to p \pi^+ K^-$ that are aligned with Dalitz-plot decomposition. The aligned amplitudes are used to compute polarimeter vector field $\vec\alpha$ over the Dalitz plane. Helicity couplings and other parameter values are taken from a recent study by the LHCb Collaboration1 and its supplementary material.

Installation

All the dependencies required to work on this Repository are managed by Pixi. If you have installed Pixi, you can simply start developing by activating the environment with:

pixi shell

This will install uv for managing Python and its dependencies as well as Julia. Then it activates the environment and you can start developing.

Common checks are defined under pixi.toml and can be listed with

pixi task list

For example, you build the documentation with executed notebooks with

pixi run docnb

Style checks are enforced with Pre-commit. You should install this system-wide once, for instance through uv:

uv tool install --with pre-commit-uv pre-commit

You can then install the Git hooks for this repository, so that the checks are run automatically before each commit:

pre-commit install

[!TIP] For more information about the local Python developer environment, see here.

This repository also contains Julia source code and Pluto notebooks. Julia can be downloaded here. You then have to activate and instantiated the Julia environment provided in the julia folder. This can be done as follows from the root directory:

julia --project=./julia -e 'import Pkg; Pkg.instantiate()'

Documentation dependencies

To build the documentation, you need to install LaTeX and some additional fonts. In Ubuntu, this can be done with:

sudo apt-get install -y cm-super dvipng texlive-latex-extra

In addition, for building the documentation as a single PDF file, you need to install XeTeX:

sudo apt-get install -y inkscape latexmk make texlive-fonts-extra texlive-xetex xindy

Building the documentation

Having installed the Python environment, you can build the documentation with:2

pixi run docnb

This will run all Jupyter notebooks and convert the output to static webpages (view the output under docs/_build/html/index.html). Running all notebooks from scratch (without any available cache) should take around one hour.

If you have installed Julia and instantiated the Julia environment, you can embed the Pluto notebooks as static pages in the documentation with:

pixi run docnb-pluto

or, alternatively, by executing all Jupyter and Pluto notebooks (ignoring any existing caches):

pixi run docnb-pluto-force

The above commands result in a static HTML webpage. It's also possible to render the notebook as a single PDF file. This can be done as follows:

pixi run pdf

Just as above, cell output can be rendered by appending nb:

pixi run pdfnb
  1. Amplitude analysis of the $\Lambda^+_c \to p K^- \pi^+$ decay and $\Lambda^+_c$ baryon polarization measurement in semileptonic beauty hadron decays (2022) [link] ↩

  2. It's also possible have a look at the documentation without cell output (just as a check for the links). This can be done with:

    pixi run doc
    
    ↩

Release files for polarimetry-lc2pkpi 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polarimetry-lc2pkpi 0.1.1
File Size Uploaded
polarimetry_lc2pkpi-0.1.1.tar.gz 973.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polarimetry-lc2pkpi 0.1.1
File Interpreter ABI Platform
polarimetry_lc2pkpi-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / polarimetry_lc2pkpi-0.1.1.tar.gz

Download URL polarimetry_lc2pkpi-0.1.1.tar.gz
Size 973.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e74171d0681d8fac9b60b6cb7e871ae6d1feba3dac031a40b80ff67820edfa6c
BLAKE2b-256 checksum
How to use checksums
35ee0e1cf51a685a17bc17af2ae4d199ee2f784ef90e6199472b20194dde3be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.

Transparency log

Release files / polarimetry_lc2pkpi-0.1.1-py3-none-any.whl

Download URL polarimetry_lc2pkpi-0.1.1-py3-none-any.whl
Size 42.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
879e065bac6f9c214c6ac01770540ec30371fa871634722e2c1fdf08f919be23
BLAKE2b-256 checksum
How to use checksums
fd8d4f974c35251f3338ac109536faa93675265fb3d39c1fee5389f104bb1b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.12

2 release files

0.0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page