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.2

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.2
File Size Uploaded
tparton-3.0.2.tar.gz 21.8 kB Details

Built distribution (wheel)

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

Total release size: 43.9 kB

Release files / tparton-3.0.2.tar.gz

Download URL tparton-3.0.2.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dbc5725295ff0cca9e8043525d2f3bce31e87faa50b054d50313a1ef70f3ac9e
BLAKE2b-256 checksum
How to use checksums
69b2f4f911e10752fc57a7469e5e777bdf69a55827bd2451ec078d75af5c52ac
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.2-py3-none-any.whl

Download URL tparton-3.0.2-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
206f3bfa13555697b521be624f9daafe661887f985a1725a4ccc1726d6dbf632
BLAKE2b-256 checksum
How to use checksums
676dee8609c2508db3e512042fb9e9a0f5cd8c0508b26348a22c725b30abb1a3
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

This release

3.0.2 This release

2 release files

3.0.1

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