tParton
Copyright 2025 Congzhou M Sha
This is an evolution code for the transversity parton distribution functions encountered in hadronic physics. The associated preprint can be found at https://arxiv.org/abs/2409.00221. If you found this work helpful, please cite our preprint, and eventually our published paper!
Documentation
The API documentation and project site are published on GitHub Pages: https://mikesha2.github.io/tParton/
Quick Start Installation
First, ensure that you have a Python package system installed. We recommend pixi over Miniconda.
pixi
pixi installs directly in the current directory.
pixi init --channel conda-forge
pixi add jupyterlab pip
pixi add --pypi tparton
To run scripts in a terminal, ensure you are in the directory where you initialized the pixi environment and execute pixi run python SCRIPT.py.
Alternatively, download the pixi.toml file (for linux-64 platforms) in this repository to your desired directory and immediately execute pixi run python SCRIPT.py. pixi will automatically install the dependencies prior to running SCRIPT.py.
conda
For conda, in your terminal, run:
conda create -n NAME -c conda-forge jupyterlab pip -y
conda activate NAME
pip install tparton
NAME is your choice of label for the conda environment you are creating. The above commands only need to be executed once. To use this environment again after a terminal or computer restart, execute conda activate NAME again.
Running tParton as a standalone script
To evolve a transversity pdf, run the command python -m tparton m. This uses the Mellin moment by default. To use the energy scale integration method, run the command python -m tparton t. Use python -m tparton m -h or python -m tparton t -h for help.
An example run will look like:
python -m tparton m INPUTPDF.dat 3.1 10.6 --morp plus -o OUTPUTPDF.dat
We are evolving the INPUTPDF.dat from 3.1 to 10.6 GeV2, for the plus type distribution, and with output written to OUTPUTPDF.dat.
Boolean options such as --alpha_num, --logScale and -v take True or False, for example --alpha_num False -l 0.231 to use the analytical coupling with the given QCD scale. A bare flag such as --alpha_num means True. Note that the command-line default is --logScale True, whereas t_evolution.evolve() defaults to logScale=False; pass the option explicitly to get the same result from both.
Running the tests
From this directory, with pytest installed:
python -m pytest
The tests do not need the package to be installed, and do not read any files from examples/.
Importing the tParton package
To use the Hirai ODE integration method:
from tparton.t_evolution import evolve
To use the Vogelsang Mellin moment method:
from tparton.m_evolution import evolve
Run help(evolve) for a description of the inputs.
Metadata
Release files for tparton 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tparton-3.0.3.tar.gz | 23.3 kB | Without provenance | Details for tparton-3.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tparton-3.0.3-py3-none-any.whl | Python 3 | none | any | Details for tparton-3.0.3-py3-none-any.whl |
Total release size: 46.2 kB
Release files / tparton-3.0.3.tar.gz
| Download URL | tparton-3.0.3.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebf47461365a58947322a67464b089ac32e2d893daac9d63d93312038ec8a1f3
|
|
BLAKE2b-256 checksum How to use checksums |
93f1db7e21114629addb2262f684d84595f342f21a619710e015dabaa77c1bb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / tparton-3.0.3-py3-none-any.whl
| Download URL | tparton-3.0.3-py3-none-any.whl |
|---|---|
| Size | 22.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a3be7b144348054fc858314c8f871dfa2f4ba67bbb0519681c616b50f47b616
|
|
BLAKE2b-256 checksum How to use checksums |
c7f51e2e0fdb25807e76644589195f5469fd4e8146b61bb0c3062cd936538c23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for tparton 3.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.