{"id":18952701,"url":"https://github.com/compwa/polarimetry","last_synced_at":"2025-10-08T08:48:44.682Z","repository":{"id":74267992,"uuid":"486584987","full_name":"ComPWA/polarimetry","owner":"ComPWA","description":"Polarimetry for the decay Λc → p K π","archived":false,"fork":false,"pushed_at":"2025-10-02T14:23:11.000Z","size":1860,"stargazers_count":5,"open_issues_count":9,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-02T14:41:22.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://compwa.github.io/polarimetry","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ComPWA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-28T12:28:06.000Z","updated_at":"2025-10-02T13:02:27.000Z","dependencies_parsed_at":"2024-08-07T13:48:53.012Z","dependency_job_id":"4289ac46-4313-43be-9d7a-631eb711d034","html_url":"https://github.com/ComPWA/polarimetry","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ComPWA/polarimetry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComPWA%2Fpolarimetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComPWA%2Fpolarimetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComPWA%2Fpolarimetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComPWA%2Fpolarimetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComPWA","download_url":"https://codeload.github.com/ComPWA/polarimetry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComPWA%2Fpolarimetry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278916439,"owners_count":26068090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:34:21.774Z","updated_at":"2025-10-08T08:48:44.670Z","avatar_url":"https://github.com/ComPWA.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aligned polarimetry field of the Λc → p π K decay\n\n[![10.1007/JHEP07(2023)228](\u003chttps://zenodo.org/badge/doi/10.1007/JHEP07(2023)228.svg\u003e)](\u003chttps://doi.org/10.1007/JHEP07(2023)228\u003e)\n[![10.5281/zenodo.7544989](https://zenodo.org/badge/doi/10.5281/zenodo.7544989.svg)](https://doi.org/10.5281/zenodo.7544989)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n[![Pixi Badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/prefix-dev/pixi/main/assets/badge/v0.json)](https://pixi.sh)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Spelling checked](https://img.shields.io/badge/cspell-checked-brightgreen.svg)](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell)\n[![PyPI package](https://badge.fury.io/py/polarimetry-lc2pkpi.svg)](https://pypi.org/project/polarimetry-lc2pkpi)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/polarimetry-lc2pkpi)](https://pypi.org/project/polarimetry-lc2pkpi)\n[![Binder](https://static.mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ComPWA/polarimetry/stable?urlpath=lab)\n\nThis repository contains the source code for “\u003cspan\u003e\u003c/span\u003e$\\Lambda_c^+$ polarimetry using the dominant hadronic mode” (2023) by the LHCb Collaboration ([10.1007/JHEP07(2023)228](\u003chttps://doi.org/10.1007/JHEP07(2023)228\u003e)). It uses [`ampform-dpd`](https://github.com/ComPWA/ampform-dpd) to formulate symbolic amplitude models for the decay $\\Lambda^+_c \\to p \\pi^+ K^-$ that are aligned with [Dalitz-plot decomposition](https://journals.aps.org/prd/abstract/10.1103/PhysRevD.101.034033). 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 Collaboration[^1] and its [supplementary material](https://cds.cern.ch/record/2824328/files).\n\n\u003c!-- cspell:ignore semileptonic --\u003e\n\n[^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]](https://inspirehep.net/literature/2132745)\n\n## Installation\n\nAll the dependencies required to work on this Repository are managed by [Pixi](https://pixi.sh). If you have installed Pixi, you can simply start developing by activating the environment with:\n\n```shell\npixi shell\n```\n\nThis will install [`uv`](https://docs.astral.sh/uv) for managing Python and its dependencies as well as Julia. Then it activates the environment and you can start developing.\n\nCommon checks are defined under [`pixi.toml`](./pixi.toml) and can be listed with\n\n```shell\npixi task list\n```\n\nFor example, you build the documentation with executed notebooks with\n\n```shell\npixi run docnb\n```\n\nStyle checks are enforced with [Pre-commit](https://pre-commit.com). You should install this system-wide once, for instance through [`uv`](https://docs.astral.sh/uv):\n\n```shell\nuv tool install --with pre-commit-uv pre-commit\n```\n\nYou can then install the Git hooks for this repository, so that the checks are run automatically before each commit:\n\n```shell\npre-commit install\n```\n\n\u003e [!TIP]\n\u003e For more information about the local Python developer environment, see [here](https://compwa.github.io/develop#local-set-up).\n\nThis repository also contains Julia source code and Pluto notebooks. Julia can be downloaded [here](https://julialang.org/downloads). You then have to activate and instantiated the Julia environment provided in the [`julia`](./julia) folder. This can be done as follows from the root directory:\n\n```shell\njulia --project=./julia -e 'import Pkg; Pkg.instantiate()'\n```\n\n### Documentation dependencies\n\nTo build the documentation, you need to install LaTeX and some additional fonts. In Ubuntu, this can be done with:\n\n```shell\nsudo apt-get install -y cm-super dvipng texlive-latex-extra\n```\n\nIn addition, for [building the documentation as a single PDF file](#building-the-documentation), you need to install XeTeX:\n\n```shell\nsudo apt-get install -y inkscape latexmk make texlive-fonts-extra texlive-xetex xindy\n```\n\n\u003c!-- cspell:ignore xetex --\u003e\n\n## Building the documentation\n\nHaving [installed the Python environment](#installation), you can build the documentation with:[^2]\n\n```shell\npixi run docnb\n```\n\nThis 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**.\n\nIf you have installed Julia and instantiated the Julia environment, you can embed the [Pluto notebooks](./julia/notebooks) as static pages in the documentation with:\n\n```shell\npixi run docnb-pluto\n```\n\nor, alternatively, by executing _all_ Jupyter and Pluto notebooks (ignoring any existing caches):\n\n```shell\npixi run docnb-pluto-force\n```\n\nThe [above commands](#building-the-documentation) 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:\n\n```shell\npixi run pdf\n```\n\nJust as above, cell output can be rendered by appending `nb`:\n\n```shell\npixi run pdfnb\n```\n\n[^2]:\n    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:\n\n    ```shell\n    pixi run doc\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwa%2Fpolarimetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwa%2Fpolarimetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwa%2Fpolarimetry/lists"}