Skip to main content

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.

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.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 tparton 3.0.1
File Size Uploaded
tparton-3.0.1.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tparton 3.0.1
File Interpreter ABI Platform
tparton-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 37.7 kB

Release files / tparton-3.0.1.tar.gz

Download URL tparton-3.0.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3e2d126e6b6155cef8b2476982db5205ada5bbd1d0a9ab4033642f2e47402286
BLAKE2b-256 checksum
How to use checksums
05d9149ffc2c86fd036f5dd31de65e457e668e0b2ba2e24899a9bc76a2a67fe5
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.1-py3-none-any.whl

Download URL tparton-3.0.1-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f74daa488a5c0f81a815decf236a2795dc2fcf75a7b34cee379b0fa26e9c2596
BLAKE2b-256 checksum
How to use checksums
6580203e049ac7537f07af3dea77c4038b1e351b17dcd41c576f9976e0c67b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

3.0.2

2 release files

This release

3.0.1 This release

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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