laddu


Nameladdu JSON
Version 0.1.15 PyPI version JSON
download
home_pagehttps://github.com/denehoffman/laddu
SummaryAmplitude analysis made short and sweet
upload_time2024-12-21 19:01:45
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT OR Apache-2.0
keywords pwa amplitude particle physics modeling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img
    width="800"
    src="media/wordmark.png"
  />
</p>
<p align="center">
    <h1 align="center">Amplitude analysis made short and sweet</h1>
</p>

<p align="center">
  <a href="https://github.com/denehoffman/laddu/releases" alt="Releases">
    <img alt="GitHub Release" src="https://img.shields.io/github/v/release/denehoffman/laddu?style=for-the-badge&logo=github"></a>
  <a href="https://github.com/denehoffman/laddu/commits/main/" alt="Lastest Commits">
    <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/denehoffman/laddu?style=for-the-badge&logo=github"></a>
  <a href="https://github.com/denehoffman/laddu/actions" alt="Build Status">
    <img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/denehoffman/laddu/rust.yml?style=for-the-badge&logo=github"></a>
  <a href="LICENSE-APACHE" alt="License">
    <img alt="GitHub License" src="https://img.shields.io/github/license/denehoffman/laddu?style=for-the-badge"></a>
  <a href="https://crates.io/crates/laddu" alt="Laddu on crates.io">
    <img alt="Crates.io Version" src="https://img.shields.io/crates/v/laddu?style=for-the-badge&logo=rust&logoColor=red&color=red"></a>
  <a href="https://docs.rs/laddu" alt="Laddu documentation on docs.rs">
    <img alt="docs.rs" src="https://img.shields.io/docsrs/laddu?style=for-the-badge&logo=rust&logoColor=red"></a>
  <a href="https://laddu.readthedocs.io/en/latest/" alt="Laddu documentation readthedocs.io">
    <img alt="Read the Docs" src="https://img.shields.io/readthedocs/laddu?style=for-the-badge&logo=readthedocs&logoColor=%238CA1AF&label=Python%20Documentation"></a>
  <a href="https://app.codecov.io/github/denehoffman/laddu/tree/main/" alt="Codecov coverage report">
    <img alt="Codecov" src="https://img.shields.io/codecov/c/github/denehoffman/laddu?style=for-the-badge&logo=codecov"></a>
  <a href="https://pypi.org/project/laddu/" alt="View project on PyPI">
  <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/laddu?style=for-the-badge&logo=python&logoColor=yellow&labelColor=blue"></a>
  <a href="https://codspeed.io/denehoffman/laddu"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fcodspeed.io%2Fbadge.json&style=for-the-badge" alt="CodSpeed Badge"/></a>
</p>

`laddu` (/ˈlʌduː/) is a library for analysis of particle physics data. It is intended to be a simple and efficient alternative to some of the [other tools](#alternatives) out there. `laddu` is written in Rust with bindings to Python via [`PyO3`](https://github.com/PyO3/pyo3) and [`maturin`](https://github.com/PyO3/maturin) and is the spiritual successor to [`rustitude`](https://github.com/denehoffman/rustitude), one of my first Rust projects. The goal of this project is to allow users to perform complex amplitude analyses (like partial-wave analyses) without complex code or configuration files.

> [!CAUTION]
> This crate is still in an early development phase, and the API is not stable. It can (and likely will) be subject to breaking changes before the 1.0.0 version release (and hopefully not many after that).


# Table of Contents
- [Key Features](#key-features)
- [Installation](#installation)
- [Quick Start](#quick-start)
  - [Rust](#rust)
    - [Writing a New Amplitude](#writing-a-new-amplitude)
    - [Calculating a Likelihood](#calculating-a-likelihood)
  - [Python](#python)
    - [Fitting Data](#fitting-data)
    - [Other Examples](#other-examples)
- [Data Format](#data-format)
- [Future Plans](#future-plans)
- [Alternatives](#alternatives)

# Key Features
* A simple interface focused on combining `Amplitude`s into models which can be evaluated over `Dataset`s.
* A single `Amplitude` trait which makes it easy to write new amplitudes and integrate them into the library.
* Easy interfaces to precompute and cache values before the main calculation to speed up model evaluations.
* Efficient parallelism using [`rayon`](https://github.com/rayon-rs/rayon).
* Python bindings to allow users to write quick, easy-to-read code that just works.

# Installation
`laddu` can be added to a Rust project with `cargo`:
```shell
cargo add laddu
```

The library's Python bindings are located in a library by the same name, which can be installed simply with your favorite Python package manager:
```shell
pip install laddu
```

# Quick Start
## Rust
### Writing a New Amplitude
While it is probably easier for most users to skip to the Python section, there is currently no way to implement a new amplitude directly from Python. At the time of writing, Rust is not a common language used by particle physics, but this tutorial should hopefully convince the reader that they don't have to know the intricacies of Rust to write performant amplitudes. As an example, here is how one might write a Breit-Wigner, parameterized as follows:
```math
I_{\ell}(m; m_0, \Gamma_0, m_1, m_2) =  \frac{1}{\pi}\frac{m_0 \Gamma_0 B_{\ell}(m, m_1, m_2)}{(m_0^2 - m^2) - \imath m_0 \Gamma}
```
where
```math
\Gamma = \Gamma_0 \frac{m_0}{m} \frac{q(m, m_1, m_2)}{q(m_0, m_1, m_2)} \left(\frac{B_{\ell}(m, m_1, m_2)}{B_{\ell}(m_0, m_1, m_2)}\right)^2
```
is the relativistic width correction, $`q(m_a, m_b, m_c)`$ is the breakup momentum of a particle with mass $`m_a`$ decaying into two particles with masses $`m_b`$ and $`m_c`$, $`B_{\ell}(m_a, m_b, m_c)`$ is the Blatt-Weisskopf barrier factor for the same decay assuming particle $`a`$ has angular momentum $`\ell`$, $`m_0`$ is the mass of the resonance, $`\Gamma_0`$ is the nominal width of the resonance, $`m_1`$ and $`m_2`$ are the masses of the decay products, and $`m`$ is the "input" mass.

Although this particular amplitude is already included in `laddu`, let's assume it isn't and imagine how we would write it from scratch:

```rust
use laddu::{
   ParameterLike, Event, Cache, Resources, Mass,
   ParameterID, Parameters, Float, LadduError, PI, AmplitudeID, Complex,
};
use laddu::traits::*;
use laddu::utils::functions::{blatt_weisskopf, breakup_momentum};
use laddu::{Deserialize, Serialize};

#[derive(Clone, Serialize, Deserialize)]
pub struct MyBreitWigner {
    name: String,
    mass: ParameterLike,
    width: ParameterLike,
    pid_mass: ParameterID,
    pid_width: ParameterID,
    l: usize,
    daughter_1_mass: Mass,
    daughter_2_mass: Mass,
    resonance_mass: Mass,
}
impl MyBreitWigner {
    pub fn new(
        name: &str,
        mass: ParameterLike,
        width: ParameterLike,
        l: usize,
        daughter_1_mass: &Mass,
        daughter_2_mass: &Mass,
        resonance_mass: &Mass,
    ) -> Box<Self> {
        Self {
            name: name.to_string(),
            mass,
            width,
            pid_mass: ParameterID::default(),
            pid_width: ParameterID::default(),
            l,
            daughter_1_mass: daughter_1_mass.clone(),
            daughter_2_mass: daughter_2_mass.clone(),
            resonance_mass: resonance_mass.clone(),
        }
        .into()
    }
}

#[typetag::serde]
impl Amplitude for MyBreitWigner {
    fn register(&mut self, resources: &mut Resources) -> Result<AmplitudeID, LadduError> {
        self.pid_mass = resources.register_parameter(&self.mass);
        self.pid_width = resources.register_parameter(&self.width);
        resources.register_amplitude(&self.name)
    }

    fn compute(&self, parameters: &Parameters, event: &Event, _cache: &Cache) -> Complex<Float> {
        let mass = self.resonance_mass.value(event);
        let mass0 = parameters.get(self.pid_mass);
        let width0 = parameters.get(self.pid_width);
        let mass1 = self.daughter_1_mass.value(event);
        let mass2 = self.daughter_2_mass.value(event);
        let q0 = breakup_momentum(mass0, mass1, mass2);
        let q = breakup_momentum(mass, mass1, mass2);
        let f0 = blatt_weisskopf(mass0, mass1, mass2, self.l);
        let f = blatt_weisskopf(mass, mass1, mass2, self.l);
        let width = width0 * (mass0 / mass) * (q / q0) * (f / f0).powi(2);
        let n = Float::sqrt(mass0 * width0 / PI);
        let d = Complex::new(mass0.powi(2) - mass.powi(2), -(mass0 * width));
        Complex::from(f * n) / d
    }
}
```
### Calculating a Likelihood
We could then write some code to use this amplitude. For demonstration purposes, let's just calculate an extended unbinned negative log-likelihood, assuming we have some data and Monte Carlo in the proper [parquet format](#data-format):
```rust
use laddu::{Scalar, Mass, Manager, NLL, parameter, open};
let ds_data = open("test_data/data.parquet").unwrap();
let ds_mc = open("test_data/mc.parquet").unwrap();

let resonance_mass = Mass::new([2, 3]);
let p1_mass = Mass::new([2]);
let p2_mass = Mass::new([3]);
let mut manager = Manager::default();
let bw = manager.register(MyBreitWigner::new(
    "bw",
    parameter("mass"),
    parameter("width"),
    2,
    &p1_mass,
    &p2_mass,
    &resonance_mass,
)).unwrap();
let mag = manager.register(Scalar::new("mag", parameter("magnitude"))).unwrap();
let expr = (mag * bw).norm_sqr();
let model = manager.model(&expr);

let nll = NLL::new(&model, &ds_data, &ds_mc);
println!("Parameters names and order: {:?}", nll.parameters());
let result = nll.evaluate(&[1.27, 0.120, 100.0]);
println!("The extended negative log-likelihood is {}", result);
```
In practice, amplitudes can also be added together, their real and imaginary parts can be taken, and evaluators should mostly take the real part of whatever complex value comes out of the model.
## Python
### Fitting Data
While we cannot (yet) implement new amplitudes within the Python interface alone, it does contain all the functionality required to analyze data. Here's an example to show some of the syntax. This models includes three partial waves described by the $`Z_{\ell}^m`$ amplitude listed in Equation (D13) [here](https://arxiv.org/abs/1906.04841)[^1]. Since we take the squared norm of each individual sum, they are invariant up to a total phase, thus the S-wave was arbitrarily picked to be purely real.
```python
import laddu as ld
import matplotlib.pyplot as plt
import numpy as np
from laddu import constant, parameter

def main():
    ds_data = ld.open("path/to/data.parquet")
    ds_mc = ld.open("path/to/accmc.parquet")
    angles = ld.Angles(0, [1], [2], [2, 3], "Helicity")
    polarization = ld.Polarization(0, [1])
    manager = ld.Manager()
    z00p = manager.register(ld.Zlm("z00p", 0, 0, "+", angles, polarization))
    z00n = manager.register(ld.Zlm("z00n", 0, 0, "-", angles, polarization))
    z22p = manager.register(ld.Zlm("z22p", 2, 2, "+", angles, polarization))
    
    s0p = manager.register(ld.Scalar("s0p", parameter("s0p")))
    s0n = manager.register(ld.Scalar("s0n", parameter("s0n")))
    d2p = manager.register(ld.ComplexScalar("d2p", parameter("d2 re"), parameter("d2 im")))

    pos_re = (s0p * z00p.real() + d2p * z22p.real()).norm_sqr()
    pos_im = (s0p * z00p.imag() + d2p * z22p.imag()).norm_sqr()
    neg_re = (s0n * z00n.real()).norm_sqr()
    neg_im = (s0n * z00n.imag()).norm_sqr()
    expr = pos_re + pos_im + neg_re + neg_im
    model = manager.model(expr)

    nll = ld.NLL(model, ds_data, ds_mc)
    status = nll.minimize([1.0] * len(nll.parameters))
    print(status)
    fit_weights = nll.project(status.x)
    s0p_weights = nll.project_with(status.x, ["z00p", "s0p"])
    s0n_weights = nll.project_with(status.x, ["z00n", "s0n"])
    d2p_weights = nll.project_with(status.x, ["z22p", "d2p"])
    masses_mc = res_mass.value_on(ds_mc)
    masses_data = res_mass.value_on(ds_data)
    weights_data = ds_data.weights
    plt.hist(masses_data, weights=weights_data, bins=80, range=(1.0, 2.0), label="Data", histtype="step")
    plt.hist(masses_mc, weights=fit_weights, bins=80, range=(1.0, 2.0), label="Fit", histtype="step")
    plt.hist(masses_mc, weights=s0p_weights, bins=80, range=(1.0, 2.0), label="$S_0^+$", histtype="step")
    plt.hist(masses_mc, weights=s0n_weights, bins=80, range=(1.0, 2.0), label="$S_0^-$", histtype="step")
    plt.hist(masses_mc, weights=d2p_weights, bins=80, range=(1.0, 2.0), label="$D_2^+$", histtype="step")
    plt.legend()
    plt.savefig("demo.svg")


if __name__ == "__main__":
    main()
```
This example would probably make the most sense for a binned fit, since there isn't actually any mass dependence in any of these amplitudes (so it will just plot the relative amount of each wave over the entire dataset).

### Other Examples
You can find other Python examples in the `python_examples` folder. They should each have a corresponding `requirements_[#].txt` file.

#### Example 1

The first example script uses data generated with [gen_amp](https://github.com/JeffersonLab/halld_sim/tree/962c1fffc29eb4801b146d0a7f1e9aecb417374a/src/programs/Simulation/gen_amp). These data consist of a data file with two resonances, an $`f_0(1500)`$ modeled as a Breit-Wigner with a mass of $`1506\text{ MeV}/c^2`$ and a width of $`112\text{ MeV}/c^2`$ and an $`f_2'(1525)`$, also modeled as a Breit-Wigner, with a mass of $`1517\text{ MeV}/c^2`$ and a width of $`86\text{ MeV}/c^2`$, as per the [PDG](https://pdg.lbl.gov/2020/tables/rpp2020-tab-mesons-light.pdf). These were generated to decay to pairs of $`K_S^0`$s and are produced via photoproduction off a proton target (as in the GlueX experiment). The beam photon is polarized with an angle of $`0`$ degrees relative to the production plane and a polarization magnitude of $`0.3519`$ (out of unity). The configuration file used to generate the corresponding data and Monte Carlo files can also be found in the `python_examples`, and the datasets contain $`100,000`$ data events and $`1,000,000`$ Monte Carlo events (generated with the `-f` argument to create a Monte Carlo file without resonances). The result of this fit can be seen in the following image (using the default 50 bins):

<p align="center">
  <img
    width="800"
    src="python_examples/example_1/example_1.svg"
  />
</p>


Additionally, this example has an optional MCMC analysis complete with a custom observer to monitor convergence based on the integrated autocorrelation time. This can be run using `example_1_mcmc.py` script after `example_1.py` has completed, as it uses data stored during the execution of `example_1.py` to initialize the walkers. A word of warning, this analysis takes a long time, but is meant more as a demonstration of what's possible with the current system. The custom autocorrelation observer plays an important role in choosing convergence criteria, since this problem has an implicit symmetry (the absolute phase between the two waves matters, but the sign is ambiguous) which cause the posterior distributions to sometimes be multimodal, which can lead to long IATs. Instead, the custom implementation projects the walkers' positions onto the two waves and uses those projections as a proxy to the real chain. This proxy is unimodal by definition, so the IATs calculated from it are much smaller and more realistically describe convergence.

Some example plots can be seen below for the first data bin:

<p align="center">
  <table>
    <tr>
      <td><img width="250" src="python_examples/example_1/mcmc_plots/corner_0.svg" /></td>
      <td><img width="250" src="python_examples/example_1/mcmc_plots/corner_transformed_0.svg" /></td>
      <td><img width="250" src="python_examples/example_1/mcmc_plots/iat_0.svg" /></td>
    </tr>
      <tr>
      <td colspan="3" align="center">
        <img width="800" src="python_examples/example_1/mcmc_plots/trace_0.svg" />
      </td>
    </tr>
  </table>
</p>

# Data Format
The data format for `laddu` is a bit different from some of the alternatives like [`AmpTools`](https://github.com/mashephe/AmpTools). Since ROOT doesn't yet have bindings to Rust and projects to read ROOT files are still largely works in progress (although I hope to use [`oxyroot`](https://github.com/m-dupont/oxyroot) in the future when I can figure out a few bugs), the primary interface for data in `laddu` is Parquet files. These are easily accessible from almost any other language and they don't take up much more space than ROOT files. In the interest of future compatibility with any number of experimental setups, the data format consists of an arbitrary number of columns containing the four-momenta of each particle, the polarization vector of each particle (optional) and a single column for the weight. These columns all have standardized names. For example, the following columns would describe a dataset with four particles, the first of which is a polarized photon beam, as in the GlueX experiment:
| Column name | Data Type | Interpretation |
| ----------- | --------- | -------------- |
| `p4_0_E`    | `Float32` | Beam Energy    |
| `p4_0_Px`    | `Float32` | Beam Momentum (x-component) |
| `p4_0_Py`    | `Float32` | Beam Momentum (y-component) |
| `p4_0_Pz`    | `Float32` | Beam Momentum (z-component) |
| `eps_0_x`    | `Float32` | Beam Polarization (x-component) |
| `eps_0_y`    | `Float32` | Beam Polarization (y-component) |
| `eps_0_z`    | `Float32` | Beam Polarization (z-component) |
| `p4_1_E`    | `Float32` | Recoil Proton Energy    |
| `p4_1_Px`    | `Float32` | Recoil Proton Momentum (x-component) |
| `p4_1_Py`    | `Float32` | Recoil Proton Momentum (y-component) |
| `p4_1_Pz`    | `Float32` | Recoil Proton Momentum (z-component) |
| `p4_2_E`    | `Float32` | Decay Product 1 Energy    |
| `p4_2_Px`    | `Float32` | Decay Product 1 Momentum (x-component) |
| `p4_2_Py`    | `Float32` | Decay Product 1 Momentum (y-component) |
| `p4_2_Pz`    | `Float32` | Decay Product 1 Momentum (z-component) |
| `p4_3_E`    | `Float32` | Decay Product 2 Energy    |
| `p4_3_Px`    | `Float32` | Decay Product 2 Momentum (x-component) |
| `p4_3_Py`    | `Float32` | Decay Product 2 Momentum (y-component) |
| `p4_3_Pz`    | `Float32` | Decay Product 2 Momentum (z-component) |
| `weight`    | `Float32` | Event Weight |

To make it easier to get started, we can directly convert from the `AmpTools` format using the provided [`amptools-to-laddu`] script (see the `bin` directory of this repository). This is not bundled with the Python library (yet) but may be in the future.

# Future Plans
* MPI and GPU integration (these are incredibly difficult to do right now, but it's something I'm looking into).
* As always, more tests and documentation.

# Alternatives
While this is likely the first Rust project (aside from my previous attempt, [`rustitude`](https://github.com/denehoffman/rustitude)), there are several other amplitude analysis programs out there at time of writing. This library is a rewrite of `rustitude` which was written when I was just learning Rust and didn't have a firm grasp of a lot of the core concepts that are required to make the analysis pipeline memory- and CPU-efficient. In particular, `rustitude` worked well, but ate up a ton of memory and did not handle precalculation as nicely.

### AmpTools
The main inspiration for this project is the library most of my collaboration uses, [`AmpTools`](https://github.com/mashephe/AmpTools). `AmpTools` has several advantages over `laddu`: it's probably faster for almost every use case, but this is mainly because it is fully integrated with MPI and GPU support. I'm not actually sure if there's a fair benchmark between the two libraries, but I'd wager `AmpTools` would still win. `AmpTools` is a much older, more developed project, dating back to 2010. However, it does have its disadvantages. First and foremost, the primary interaction with the library is through configuration files which are not really code and sort of represent a domain specific language. As such, there isn't really a way to check if a particular config will work before running it. Users could technically code up their analyses in C++ as well, but I think this would generally be more work for very little benefit. AmpTools primarily interacts with Minuit, so there aren't simple ways to perform alternative optimization algorithms, and the outputs are a file which must also be parsed by code written by the user. This usually means some boilerplate setup for each analysis, a slew of input and output files, and, since it doesn't ship with any amplitudes, integration with other libraries. The data format is also very rigid, to the point where including beam polarization information feels hacked on (see the Zlm implementation [here](https://github.com/JeffersonLab/halld_sim/blob/6815c979cac4b79a47e5183cf285ce9589fe4c7f/src/libraries/AMPTOOLS_AMPS/Zlm.cc#L26) which requires the event-by-event polarization to be stored in the beam's four-momentum). While there isn't an official Python interface, Lawrence Ng has made some progress porting the code [here](https://github.com/lan13005/PyAmpTools).

### PyPWA
[`PyPWA`](https://github.com/JeffersonLab/PyPWA/tree/main) is a library written in pure Python. While this might seem like an issue for performance (and it sort of is), the library has several features which encourage the use of JIT compilers. The upside is that analyses can be quickly prototyped and run with very few dependencies, it can even run on GPUs and use multiprocessing. The downside is that recent development has been slow and the actual implementation of common amplitudes is, in my opinion, [messy](https://pypwa.jlab.org/AmplitudeTWOsim.py). I don't think that's a reason to not use it, but it does make it difficult for new users to get started.

### ComPWA
[`ComPWA`](https://compwa.github.io/) is a newcomer to the field. It's also a pure Python implementation and is comprised of three separate libraries. [`QRules`](https://github.com/ComPWA/qrules) can be used to validate and generate particle reaction topologies using conservation rules. [`AmpForm`](https://github.com/ComPWA/ampform) uses `SymPy` to transform these topologies into mathematical expressions, and it can also simplify the mathematical forms through the built-in CAS of `SymPy`. Finally, [`TensorWaves`](https://github.com/ComPWA/tensorwaves) connects `AmpForm` to various fitting methods. In general, these libraries have tons of neat features, are well-documented, and are really quite nice to use. I would like to eventually see `laddu` as a companion to `ComPWA` (rather than direct competition), but I don't really know enough about the libraries to say much more than that.

### Others
It could be the case that I am leaving out software with which I am not familiar. If so, I'd love to include it here for reference. I don't think that `laddu` will ever be the end-all-be-all of amplitude analysis, just an alternative that might improve on existing systems. It is important for physicists to be aware of these alternatives. For example, if you really don't want to learn Rust but need to implement an amplitude which isn't already included here, `laddu` isn't for you, and one of these alternatives might be best.

[^1]: Mathieu, V., Albaladejo, M., Fernández-Ramírez, C., Jackura, A. W., Mikhasenko, M., Pilloni, A., & Szczepaniak, A. P. (2019). Moments of angular distribution and beam asymmetries in $`\eta\pi^0`$ photoproduction at GlueX. _Physical Review D_, **100**(5). [doi:10.1103/physrevd.100.054017](https://doi.org/10.1103/PhysRevD.100.054017)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/denehoffman/laddu",
    "name": "laddu",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "PWA, amplitude, particle, physics, modeling",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/45/11/18980099158d5ca032b2a326ff582daf1a257bdc4d66287579f298dbd98d/laddu-0.1.15.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img\n    width=\"800\"\n    src=\"media/wordmark.png\"\n  />\n</p>\n<p align=\"center\">\n    <h1 align=\"center\">Amplitude analysis made short and sweet</h1>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/denehoffman/laddu/releases\" alt=\"Releases\">\n    <img alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/denehoffman/laddu?style=for-the-badge&logo=github\"></a>\n  <a href=\"https://github.com/denehoffman/laddu/commits/main/\" alt=\"Lastest Commits\">\n    <img alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/denehoffman/laddu?style=for-the-badge&logo=github\"></a>\n  <a href=\"https://github.com/denehoffman/laddu/actions\" alt=\"Build Status\">\n    <img alt=\"GitHub Actions Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/denehoffman/laddu/rust.yml?style=for-the-badge&logo=github\"></a>\n  <a href=\"LICENSE-APACHE\" alt=\"License\">\n    <img alt=\"GitHub License\" src=\"https://img.shields.io/github/license/denehoffman/laddu?style=for-the-badge\"></a>\n  <a href=\"https://crates.io/crates/laddu\" alt=\"Laddu on crates.io\">\n    <img alt=\"Crates.io Version\" src=\"https://img.shields.io/crates/v/laddu?style=for-the-badge&logo=rust&logoColor=red&color=red\"></a>\n  <a href=\"https://docs.rs/laddu\" alt=\"Laddu documentation on docs.rs\">\n    <img alt=\"docs.rs\" src=\"https://img.shields.io/docsrs/laddu?style=for-the-badge&logo=rust&logoColor=red\"></a>\n  <a href=\"https://laddu.readthedocs.io/en/latest/\" alt=\"Laddu documentation readthedocs.io\">\n    <img alt=\"Read the Docs\" src=\"https://img.shields.io/readthedocs/laddu?style=for-the-badge&logo=readthedocs&logoColor=%238CA1AF&label=Python%20Documentation\"></a>\n  <a href=\"https://app.codecov.io/github/denehoffman/laddu/tree/main/\" alt=\"Codecov coverage report\">\n    <img alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/denehoffman/laddu?style=for-the-badge&logo=codecov\"></a>\n  <a href=\"https://pypi.org/project/laddu/\" alt=\"View project on PyPI\">\n  <img alt=\"PyPI - Version\" src=\"https://img.shields.io/pypi/v/laddu?style=for-the-badge&logo=python&logoColor=yellow&labelColor=blue\"></a>\n  <a href=\"https://codspeed.io/denehoffman/laddu\"><img src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fcodspeed.io%2Fbadge.json&style=for-the-badge\" alt=\"CodSpeed Badge\"/></a>\n</p>\n\n`laddu` (/\u02c8l\u028cdu\u02d0/) is a library for analysis of particle physics data. It is intended to be a simple and efficient alternative to some of the [other tools](#alternatives) out there. `laddu` is written in Rust with bindings to Python via [`PyO3`](https://github.com/PyO3/pyo3) and [`maturin`](https://github.com/PyO3/maturin) and is the spiritual successor to [`rustitude`](https://github.com/denehoffman/rustitude), one of my first Rust projects. The goal of this project is to allow users to perform complex amplitude analyses (like partial-wave analyses) without complex code or configuration files.\n\n> [!CAUTION]\n> This crate is still in an early development phase, and the API is not stable. It can (and likely will) be subject to breaking changes before the 1.0.0 version release (and hopefully not many after that).\n\n\n# Table of Contents\n- [Key Features](#key-features)\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n  - [Rust](#rust)\n    - [Writing a New Amplitude](#writing-a-new-amplitude)\n    - [Calculating a Likelihood](#calculating-a-likelihood)\n  - [Python](#python)\n    - [Fitting Data](#fitting-data)\n    - [Other Examples](#other-examples)\n- [Data Format](#data-format)\n- [Future Plans](#future-plans)\n- [Alternatives](#alternatives)\n\n# Key Features\n* A simple interface focused on combining `Amplitude`s into models which can be evaluated over `Dataset`s.\n* A single `Amplitude` trait which makes it easy to write new amplitudes and integrate them into the library.\n* Easy interfaces to precompute and cache values before the main calculation to speed up model evaluations.\n* Efficient parallelism using [`rayon`](https://github.com/rayon-rs/rayon).\n* Python bindings to allow users to write quick, easy-to-read code that just works.\n\n# Installation\n`laddu` can be added to a Rust project with `cargo`:\n```shell\ncargo add laddu\n```\n\nThe library's Python bindings are located in a library by the same name, which can be installed simply with your favorite Python package manager:\n```shell\npip install laddu\n```\n\n# Quick Start\n## Rust\n### Writing a New Amplitude\nWhile it is probably easier for most users to skip to the Python section, there is currently no way to implement a new amplitude directly from Python. At the time of writing, Rust is not a common language used by particle physics, but this tutorial should hopefully convince the reader that they don't have to know the intricacies of Rust to write performant amplitudes. As an example, here is how one might write a Breit-Wigner, parameterized as follows:\n```math\nI_{\\ell}(m; m_0, \\Gamma_0, m_1, m_2) =  \\frac{1}{\\pi}\\frac{m_0 \\Gamma_0 B_{\\ell}(m, m_1, m_2)}{(m_0^2 - m^2) - \\imath m_0 \\Gamma}\n```\nwhere\n```math\n\\Gamma = \\Gamma_0 \\frac{m_0}{m} \\frac{q(m, m_1, m_2)}{q(m_0, m_1, m_2)} \\left(\\frac{B_{\\ell}(m, m_1, m_2)}{B_{\\ell}(m_0, m_1, m_2)}\\right)^2\n```\nis the relativistic width correction, $`q(m_a, m_b, m_c)`$ is the breakup momentum of a particle with mass $`m_a`$ decaying into two particles with masses $`m_b`$ and $`m_c`$, $`B_{\\ell}(m_a, m_b, m_c)`$ is the Blatt-Weisskopf barrier factor for the same decay assuming particle $`a`$ has angular momentum $`\\ell`$, $`m_0`$ is the mass of the resonance, $`\\Gamma_0`$ is the nominal width of the resonance, $`m_1`$ and $`m_2`$ are the masses of the decay products, and $`m`$ is the \"input\" mass.\n\nAlthough this particular amplitude is already included in `laddu`, let's assume it isn't and imagine how we would write it from scratch:\n\n```rust\nuse laddu::{\n   ParameterLike, Event, Cache, Resources, Mass,\n   ParameterID, Parameters, Float, LadduError, PI, AmplitudeID, Complex,\n};\nuse laddu::traits::*;\nuse laddu::utils::functions::{blatt_weisskopf, breakup_momentum};\nuse laddu::{Deserialize, Serialize};\n\n#[derive(Clone, Serialize, Deserialize)]\npub struct MyBreitWigner {\n    name: String,\n    mass: ParameterLike,\n    width: ParameterLike,\n    pid_mass: ParameterID,\n    pid_width: ParameterID,\n    l: usize,\n    daughter_1_mass: Mass,\n    daughter_2_mass: Mass,\n    resonance_mass: Mass,\n}\nimpl MyBreitWigner {\n    pub fn new(\n        name: &str,\n        mass: ParameterLike,\n        width: ParameterLike,\n        l: usize,\n        daughter_1_mass: &Mass,\n        daughter_2_mass: &Mass,\n        resonance_mass: &Mass,\n    ) -> Box<Self> {\n        Self {\n            name: name.to_string(),\n            mass,\n            width,\n            pid_mass: ParameterID::default(),\n            pid_width: ParameterID::default(),\n            l,\n            daughter_1_mass: daughter_1_mass.clone(),\n            daughter_2_mass: daughter_2_mass.clone(),\n            resonance_mass: resonance_mass.clone(),\n        }\n        .into()\n    }\n}\n\n#[typetag::serde]\nimpl Amplitude for MyBreitWigner {\n    fn register(&mut self, resources: &mut Resources) -> Result<AmplitudeID, LadduError> {\n        self.pid_mass = resources.register_parameter(&self.mass);\n        self.pid_width = resources.register_parameter(&self.width);\n        resources.register_amplitude(&self.name)\n    }\n\n    fn compute(&self, parameters: &Parameters, event: &Event, _cache: &Cache) -> Complex<Float> {\n        let mass = self.resonance_mass.value(event);\n        let mass0 = parameters.get(self.pid_mass);\n        let width0 = parameters.get(self.pid_width);\n        let mass1 = self.daughter_1_mass.value(event);\n        let mass2 = self.daughter_2_mass.value(event);\n        let q0 = breakup_momentum(mass0, mass1, mass2);\n        let q = breakup_momentum(mass, mass1, mass2);\n        let f0 = blatt_weisskopf(mass0, mass1, mass2, self.l);\n        let f = blatt_weisskopf(mass, mass1, mass2, self.l);\n        let width = width0 * (mass0 / mass) * (q / q0) * (f / f0).powi(2);\n        let n = Float::sqrt(mass0 * width0 / PI);\n        let d = Complex::new(mass0.powi(2) - mass.powi(2), -(mass0 * width));\n        Complex::from(f * n) / d\n    }\n}\n```\n### Calculating a Likelihood\nWe could then write some code to use this amplitude. For demonstration purposes, let's just calculate an extended unbinned negative log-likelihood, assuming we have some data and Monte Carlo in the proper [parquet format](#data-format):\n```rust\nuse laddu::{Scalar, Mass, Manager, NLL, parameter, open};\nlet ds_data = open(\"test_data/data.parquet\").unwrap();\nlet ds_mc = open(\"test_data/mc.parquet\").unwrap();\n\nlet resonance_mass = Mass::new([2, 3]);\nlet p1_mass = Mass::new([2]);\nlet p2_mass = Mass::new([3]);\nlet mut manager = Manager::default();\nlet bw = manager.register(MyBreitWigner::new(\n    \"bw\",\n    parameter(\"mass\"),\n    parameter(\"width\"),\n    2,\n    &p1_mass,\n    &p2_mass,\n    &resonance_mass,\n)).unwrap();\nlet mag = manager.register(Scalar::new(\"mag\", parameter(\"magnitude\"))).unwrap();\nlet expr = (mag * bw).norm_sqr();\nlet model = manager.model(&expr);\n\nlet nll = NLL::new(&model, &ds_data, &ds_mc);\nprintln!(\"Parameters names and order: {:?}\", nll.parameters());\nlet result = nll.evaluate(&[1.27, 0.120, 100.0]);\nprintln!(\"The extended negative log-likelihood is {}\", result);\n```\nIn practice, amplitudes can also be added together, their real and imaginary parts can be taken, and evaluators should mostly take the real part of whatever complex value comes out of the model.\n## Python\n### Fitting Data\nWhile we cannot (yet) implement new amplitudes within the Python interface alone, it does contain all the functionality required to analyze data. Here's an example to show some of the syntax. This models includes three partial waves described by the $`Z_{\\ell}^m`$ amplitude listed in Equation (D13) [here](https://arxiv.org/abs/1906.04841)[^1]. Since we take the squared norm of each individual sum, they are invariant up to a total phase, thus the S-wave was arbitrarily picked to be purely real.\n```python\nimport laddu as ld\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom laddu import constant, parameter\n\ndef main():\n    ds_data = ld.open(\"path/to/data.parquet\")\n    ds_mc = ld.open(\"path/to/accmc.parquet\")\n    angles = ld.Angles(0, [1], [2], [2, 3], \"Helicity\")\n    polarization = ld.Polarization(0, [1])\n    manager = ld.Manager()\n    z00p = manager.register(ld.Zlm(\"z00p\", 0, 0, \"+\", angles, polarization))\n    z00n = manager.register(ld.Zlm(\"z00n\", 0, 0, \"-\", angles, polarization))\n    z22p = manager.register(ld.Zlm(\"z22p\", 2, 2, \"+\", angles, polarization))\n    \n    s0p = manager.register(ld.Scalar(\"s0p\", parameter(\"s0p\")))\n    s0n = manager.register(ld.Scalar(\"s0n\", parameter(\"s0n\")))\n    d2p = manager.register(ld.ComplexScalar(\"d2p\", parameter(\"d2 re\"), parameter(\"d2 im\")))\n\n    pos_re = (s0p * z00p.real() + d2p * z22p.real()).norm_sqr()\n    pos_im = (s0p * z00p.imag() + d2p * z22p.imag()).norm_sqr()\n    neg_re = (s0n * z00n.real()).norm_sqr()\n    neg_im = (s0n * z00n.imag()).norm_sqr()\n    expr = pos_re + pos_im + neg_re + neg_im\n    model = manager.model(expr)\n\n    nll = ld.NLL(model, ds_data, ds_mc)\n    status = nll.minimize([1.0] * len(nll.parameters))\n    print(status)\n    fit_weights = nll.project(status.x)\n    s0p_weights = nll.project_with(status.x, [\"z00p\", \"s0p\"])\n    s0n_weights = nll.project_with(status.x, [\"z00n\", \"s0n\"])\n    d2p_weights = nll.project_with(status.x, [\"z22p\", \"d2p\"])\n    masses_mc = res_mass.value_on(ds_mc)\n    masses_data = res_mass.value_on(ds_data)\n    weights_data = ds_data.weights\n    plt.hist(masses_data, weights=weights_data, bins=80, range=(1.0, 2.0), label=\"Data\", histtype=\"step\")\n    plt.hist(masses_mc, weights=fit_weights, bins=80, range=(1.0, 2.0), label=\"Fit\", histtype=\"step\")\n    plt.hist(masses_mc, weights=s0p_weights, bins=80, range=(1.0, 2.0), label=\"$S_0^+$\", histtype=\"step\")\n    plt.hist(masses_mc, weights=s0n_weights, bins=80, range=(1.0, 2.0), label=\"$S_0^-$\", histtype=\"step\")\n    plt.hist(masses_mc, weights=d2p_weights, bins=80, range=(1.0, 2.0), label=\"$D_2^+$\", histtype=\"step\")\n    plt.legend()\n    plt.savefig(\"demo.svg\")\n\n\nif __name__ == \"__main__\":\n    main()\n```\nThis example would probably make the most sense for a binned fit, since there isn't actually any mass dependence in any of these amplitudes (so it will just plot the relative amount of each wave over the entire dataset).\n\n### Other Examples\nYou can find other Python examples in the `python_examples` folder. They should each have a corresponding `requirements_[#].txt` file.\n\n#### Example 1\n\nThe first example script uses data generated with [gen_amp](https://github.com/JeffersonLab/halld_sim/tree/962c1fffc29eb4801b146d0a7f1e9aecb417374a/src/programs/Simulation/gen_amp). These data consist of a data file with two resonances, an $`f_0(1500)`$ modeled as a Breit-Wigner with a mass of $`1506\\text{ MeV}/c^2`$ and a width of $`112\\text{ MeV}/c^2`$ and an $`f_2'(1525)`$, also modeled as a Breit-Wigner, with a mass of $`1517\\text{ MeV}/c^2`$ and a width of $`86\\text{ MeV}/c^2`$, as per the [PDG](https://pdg.lbl.gov/2020/tables/rpp2020-tab-mesons-light.pdf). These were generated to decay to pairs of $`K_S^0`$s and are produced via photoproduction off a proton target (as in the GlueX experiment). The beam photon is polarized with an angle of $`0`$ degrees relative to the production plane and a polarization magnitude of $`0.3519`$ (out of unity). The configuration file used to generate the corresponding data and Monte Carlo files can also be found in the `python_examples`, and the datasets contain $`100,000`$ data events and $`1,000,000`$ Monte Carlo events (generated with the `-f` argument to create a Monte Carlo file without resonances). The result of this fit can be seen in the following image (using the default 50 bins):\n\n<p align=\"center\">\n  <img\n    width=\"800\"\n    src=\"python_examples/example_1/example_1.svg\"\n  />\n</p>\n\n\nAdditionally, this example has an optional MCMC analysis complete with a custom observer to monitor convergence based on the integrated autocorrelation time. This can be run using `example_1_mcmc.py` script after `example_1.py` has completed, as it uses data stored during the execution of `example_1.py` to initialize the walkers. A word of warning, this analysis takes a long time, but is meant more as a demonstration of what's possible with the current system. The custom autocorrelation observer plays an important role in choosing convergence criteria, since this problem has an implicit symmetry (the absolute phase between the two waves matters, but the sign is ambiguous) which cause the posterior distributions to sometimes be multimodal, which can lead to long IATs. Instead, the custom implementation projects the walkers' positions onto the two waves and uses those projections as a proxy to the real chain. This proxy is unimodal by definition, so the IATs calculated from it are much smaller and more realistically describe convergence.\n\nSome example plots can be seen below for the first data bin:\n\n<p align=\"center\">\n  <table>\n    <tr>\n      <td><img width=\"250\" src=\"python_examples/example_1/mcmc_plots/corner_0.svg\" /></td>\n      <td><img width=\"250\" src=\"python_examples/example_1/mcmc_plots/corner_transformed_0.svg\" /></td>\n      <td><img width=\"250\" src=\"python_examples/example_1/mcmc_plots/iat_0.svg\" /></td>\n    </tr>\n      <tr>\n      <td colspan=\"3\" align=\"center\">\n        <img width=\"800\" src=\"python_examples/example_1/mcmc_plots/trace_0.svg\" />\n      </td>\n    </tr>\n  </table>\n</p>\n\n# Data Format\nThe data format for `laddu` is a bit different from some of the alternatives like [`AmpTools`](https://github.com/mashephe/AmpTools). Since ROOT doesn't yet have bindings to Rust and projects to read ROOT files are still largely works in progress (although I hope to use [`oxyroot`](https://github.com/m-dupont/oxyroot) in the future when I can figure out a few bugs), the primary interface for data in `laddu` is Parquet files. These are easily accessible from almost any other language and they don't take up much more space than ROOT files. In the interest of future compatibility with any number of experimental setups, the data format consists of an arbitrary number of columns containing the four-momenta of each particle, the polarization vector of each particle (optional) and a single column for the weight. These columns all have standardized names. For example, the following columns would describe a dataset with four particles, the first of which is a polarized photon beam, as in the GlueX experiment:\n| Column name | Data Type | Interpretation |\n| ----------- | --------- | -------------- |\n| `p4_0_E`    | `Float32` | Beam Energy    |\n| `p4_0_Px`    | `Float32` | Beam Momentum (x-component) |\n| `p4_0_Py`    | `Float32` | Beam Momentum (y-component) |\n| `p4_0_Pz`    | `Float32` | Beam Momentum (z-component) |\n| `eps_0_x`    | `Float32` | Beam Polarization (x-component) |\n| `eps_0_y`    | `Float32` | Beam Polarization (y-component) |\n| `eps_0_z`    | `Float32` | Beam Polarization (z-component) |\n| `p4_1_E`    | `Float32` | Recoil Proton Energy    |\n| `p4_1_Px`    | `Float32` | Recoil Proton Momentum (x-component) |\n| `p4_1_Py`    | `Float32` | Recoil Proton Momentum (y-component) |\n| `p4_1_Pz`    | `Float32` | Recoil Proton Momentum (z-component) |\n| `p4_2_E`    | `Float32` | Decay Product 1 Energy    |\n| `p4_2_Px`    | `Float32` | Decay Product 1 Momentum (x-component) |\n| `p4_2_Py`    | `Float32` | Decay Product 1 Momentum (y-component) |\n| `p4_2_Pz`    | `Float32` | Decay Product 1 Momentum (z-component) |\n| `p4_3_E`    | `Float32` | Decay Product 2 Energy    |\n| `p4_3_Px`    | `Float32` | Decay Product 2 Momentum (x-component) |\n| `p4_3_Py`    | `Float32` | Decay Product 2 Momentum (y-component) |\n| `p4_3_Pz`    | `Float32` | Decay Product 2 Momentum (z-component) |\n| `weight`    | `Float32` | Event Weight |\n\nTo make it easier to get started, we can directly convert from the `AmpTools` format using the provided [`amptools-to-laddu`] script (see the `bin` directory of this repository). This is not bundled with the Python library (yet) but may be in the future.\n\n# Future Plans\n* MPI and GPU integration (these are incredibly difficult to do right now, but it's something I'm looking into).\n* As always, more tests and documentation.\n\n# Alternatives\nWhile this is likely the first Rust project (aside from my previous attempt, [`rustitude`](https://github.com/denehoffman/rustitude)), there are several other amplitude analysis programs out there at time of writing. This library is a rewrite of `rustitude` which was written when I was just learning Rust and didn't have a firm grasp of a lot of the core concepts that are required to make the analysis pipeline memory- and CPU-efficient. In particular, `rustitude` worked well, but ate up a ton of memory and did not handle precalculation as nicely.\n\n### AmpTools\nThe main inspiration for this project is the library most of my collaboration uses, [`AmpTools`](https://github.com/mashephe/AmpTools). `AmpTools` has several advantages over `laddu`: it's probably faster for almost every use case, but this is mainly because it is fully integrated with MPI and GPU support. I'm not actually sure if there's a fair benchmark between the two libraries, but I'd wager `AmpTools` would still win. `AmpTools` is a much older, more developed project, dating back to 2010. However, it does have its disadvantages. First and foremost, the primary interaction with the library is through configuration files which are not really code and sort of represent a domain specific language. As such, there isn't really a way to check if a particular config will work before running it. Users could technically code up their analyses in C++ as well, but I think this would generally be more work for very little benefit. AmpTools primarily interacts with Minuit, so there aren't simple ways to perform alternative optimization algorithms, and the outputs are a file which must also be parsed by code written by the user. This usually means some boilerplate setup for each analysis, a slew of input and output files, and, since it doesn't ship with any amplitudes, integration with other libraries. The data format is also very rigid, to the point where including beam polarization information feels hacked on (see the Zlm implementation [here](https://github.com/JeffersonLab/halld_sim/blob/6815c979cac4b79a47e5183cf285ce9589fe4c7f/src/libraries/AMPTOOLS_AMPS/Zlm.cc#L26) which requires the event-by-event polarization to be stored in the beam's four-momentum). While there isn't an official Python interface, Lawrence Ng has made some progress porting the code [here](https://github.com/lan13005/PyAmpTools).\n\n### PyPWA\n[`PyPWA`](https://github.com/JeffersonLab/PyPWA/tree/main) is a library written in pure Python. While this might seem like an issue for performance (and it sort of is), the library has several features which encourage the use of JIT compilers. The upside is that analyses can be quickly prototyped and run with very few dependencies, it can even run on GPUs and use multiprocessing. The downside is that recent development has been slow and the actual implementation of common amplitudes is, in my opinion, [messy](https://pypwa.jlab.org/AmplitudeTWOsim.py). I don't think that's a reason to not use it, but it does make it difficult for new users to get started.\n\n### ComPWA\n[`ComPWA`](https://compwa.github.io/) is a newcomer to the field. It's also a pure Python implementation and is comprised of three separate libraries. [`QRules`](https://github.com/ComPWA/qrules) can be used to validate and generate particle reaction topologies using conservation rules. [`AmpForm`](https://github.com/ComPWA/ampform) uses `SymPy` to transform these topologies into mathematical expressions, and it can also simplify the mathematical forms through the built-in CAS of `SymPy`. Finally, [`TensorWaves`](https://github.com/ComPWA/tensorwaves) connects `AmpForm` to various fitting methods. In general, these libraries have tons of neat features, are well-documented, and are really quite nice to use. I would like to eventually see `laddu` as a companion to `ComPWA` (rather than direct competition), but I don't really know enough about the libraries to say much more than that.\n\n### Others\nIt could be the case that I am leaving out software with which I am not familiar. If so, I'd love to include it here for reference. I don't think that `laddu` will ever be the end-all-be-all of amplitude analysis, just an alternative that might improve on existing systems. It is important for physicists to be aware of these alternatives. For example, if you really don't want to learn Rust but need to implement an amplitude which isn't already included here, `laddu` isn't for you, and one of these alternatives might be best.\n\n[^1]: Mathieu, V., Albaladejo, M., Fern\u00e1ndez-Ram\u00edrez, C., Jackura, A. W., Mikhasenko, M., Pilloni, A., & Szczepaniak, A. P. (2019). Moments of angular distribution and beam asymmetries in $`\\eta\\pi^0`$ photoproduction at GlueX. _Physical Review D_, **100**(5). [doi:10.1103/physrevd.100.054017](https://doi.org/10.1103/PhysRevD.100.054017)\n\n",
    "bugtrack_url": null,
    "license": "MIT OR Apache-2.0",
    "summary": "Amplitude analysis made short and sweet",
    "version": "0.1.15",
    "project_urls": {
        "Homepage": "https://github.com/denehoffman/laddu",
        "Source Code": "https://github.com/denehoffman/laddu"
    },
    "split_keywords": [
        "pwa",
        " amplitude",
        " particle",
        " physics",
        " modeling"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "392b7e82a9edd80577cfada162d8fd30b70e8d99e0c9159d6704d1841131eda4",
                "md5": "67c8cec18944f6dd60ac0ab370da3766",
                "sha256": "2ad54403c981ae3082380c2c18549300117c7681b461b1b671bce94e87996bb9"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "67c8cec18944f6dd60ac0ab370da3766",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3771812,
            "upload_time": "2024-12-21T19:01:34",
            "upload_time_iso_8601": "2024-12-21T19:01:34.112475Z",
            "url": "https://files.pythonhosted.org/packages/39/2b/7e82a9edd80577cfada162d8fd30b70e8d99e0c9159d6704d1841131eda4/laddu-0.1.15-cp37-abi3-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5ecb5b18b4a5b16dd8875855ebe2ccf6913b18d121e58ca77c2a28d4782e2e3c",
                "md5": "33ce7f1c4c03d45724eee39fd837802c",
                "sha256": "cfc6096d9fb07f9df194cdeaa0743a11a89937002992a653d5c74086500fe9dc"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "33ce7f1c4c03d45724eee39fd837802c",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3230064,
            "upload_time": "2024-12-21T19:01:31",
            "upload_time_iso_8601": "2024-12-21T19:01:31.047943Z",
            "url": "https://files.pythonhosted.org/packages/5e/cb/5b18b4a5b16dd8875855ebe2ccf6913b18d121e58ca77c2a28d4782e2e3c/laddu-0.1.15-cp37-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "384bce04a2d7c5b7d74a9c3d3a5e5a3a63ce9cc7580bad08e0534ee0a65a02ae",
                "md5": "8c97a24bee4a51d4413b9cddc5865e1b",
                "sha256": "23466887e01dea4cd9b6f9452b83c7031a6aa3b8297cfdbf06253985d8c1316c"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl",
            "has_sig": false,
            "md5_digest": "8c97a24bee4a51d4413b9cddc5865e1b",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4062186,
            "upload_time": "2024-12-21T19:01:23",
            "upload_time_iso_8601": "2024-12-21T19:01:23.740774Z",
            "url": "https://files.pythonhosted.org/packages/38/4b/ce04a2d7c5b7d74a9c3d3a5e5a3a63ce9cc7580bad08e0534ee0a65a02ae/laddu-0.1.15-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bf4e10d028b5a13d8aa2f6eae6f4d54e607b5c4788e04138694b9a9b5414a1ba",
                "md5": "ed0f9fabcb6b486d3bb5102dcd95b010",
                "sha256": "4153d95091ec6485286671f06dc10a40fd287685e0f7aa977663024ab6723a37"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "ed0f9fabcb6b486d3bb5102dcd95b010",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3617624,
            "upload_time": "2024-12-21T19:01:12",
            "upload_time_iso_8601": "2024-12-21T19:01:12.212377Z",
            "url": "https://files.pythonhosted.org/packages/bf/4e/10d028b5a13d8aa2f6eae6f4d54e607b5c4788e04138694b9a9b5414a1ba/laddu-0.1.15-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b7fe741b1750d3a06e9b328363ba2a2ca3efb607c48ca4344c1d2360242129e2",
                "md5": "3e4dbbf1e907dd390d9f14fd3a42d5b4",
                "sha256": "9c273469a22505c47bfed254859969d8e3557fd4e38c21272ed91837eb8d79e4"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "3e4dbbf1e907dd390d9f14fd3a42d5b4",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3984102,
            "upload_time": "2024-12-21T19:01:15",
            "upload_time_iso_8601": "2024-12-21T19:01:15.770908Z",
            "url": "https://files.pythonhosted.org/packages/b7/fe/741b1750d3a06e9b328363ba2a2ca3efb607c48ca4344c1d2360242129e2/laddu-0.1.15-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4acc7042c164fa854a0f4bbe1686d66ca6efc307b8a3284368158fda676d80b8",
                "md5": "7390ab877168ce8280affa4bf51d0dd4",
                "sha256": "752be34973c0838eeb82a66e44892a46629672b304979fc4afcab65bd1c00c38"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "has_sig": false,
            "md5_digest": "7390ab877168ce8280affa4bf51d0dd4",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4038922,
            "upload_time": "2024-12-21T19:01:17",
            "upload_time_iso_8601": "2024-12-21T19:01:17.655957Z",
            "url": "https://files.pythonhosted.org/packages/4a/cc/7042c164fa854a0f4bbe1686d66ca6efc307b8a3284368158fda676d80b8/laddu-0.1.15-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9bdef2011300b83b9b330ef38c83dfb1432343fb39487e7bec48df8fd1a74433",
                "md5": "3392612d821e3d4f0c23e701dbce5c8f",
                "sha256": "d51826983fabfe91aeaa8fe00d46e3b8ff0b8d9a4d494b3caca6c9b74d9bd4ee"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "has_sig": false,
            "md5_digest": "3392612d821e3d4f0c23e701dbce5c8f",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 5304636,
            "upload_time": "2024-12-21T19:01:20",
            "upload_time_iso_8601": "2024-12-21T19:01:20.861061Z",
            "url": "https://files.pythonhosted.org/packages/9b/de/f2011300b83b9b330ef38c83dfb1432343fb39487e7bec48df8fd1a74433/laddu-0.1.15-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "027bbcba49e7a7b364d67cfff93b212564d26b1f8f89683cea0bbdff64352629",
                "md5": "76b46233d5de0c8e897c7c203db85baf",
                "sha256": "783266182f001943076310b9ab2c08dcb877dfa7b0cb7fe749582e1653fa558c"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "76b46233d5de0c8e897c7c203db85baf",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4013541,
            "upload_time": "2024-12-21T19:01:25",
            "upload_time_iso_8601": "2024-12-21T19:01:25.915983Z",
            "url": "https://files.pythonhosted.org/packages/02/7b/bcba49e7a7b364d67cfff93b212564d26b1f8f89683cea0bbdff64352629/laddu-0.1.15-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "eac9de209d8d912c0de1d11be87e5464db6af4d34d8a7f10d863167f948c1fce",
                "md5": "411d44e574240bebf8bb84f0ff4c3b0e",
                "sha256": "18df9b5f3a2ca930631e3317b1af715294cfc208c180ca932f1c0add257327d8"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-musllinux_1_2_aarch64.whl",
            "has_sig": false,
            "md5_digest": "411d44e574240bebf8bb84f0ff4c3b0e",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3789961,
            "upload_time": "2024-12-21T19:01:35",
            "upload_time_iso_8601": "2024-12-21T19:01:35.913017Z",
            "url": "https://files.pythonhosted.org/packages/ea/c9/de209d8d912c0de1d11be87e5464db6af4d34d8a7f10d863167f948c1fce/laddu-0.1.15-cp37-abi3-musllinux_1_2_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7cf3fea477e2d366cff022f70030fa4f53e4c6a8807ea1578a168197a3d00071",
                "md5": "a50c910b79ce966536f7768852b02931",
                "sha256": "d8f32d187dcbad3316bfeab10ab0c294013bca73b94f8ee54442b5f178ac8814"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-musllinux_1_2_armv7l.whl",
            "has_sig": false,
            "md5_digest": "a50c910b79ce966536f7768852b02931",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4226012,
            "upload_time": "2024-12-21T19:01:38",
            "upload_time_iso_8601": "2024-12-21T19:01:38.639265Z",
            "url": "https://files.pythonhosted.org/packages/7c/f3/fea477e2d366cff022f70030fa4f53e4c6a8807ea1578a168197a3d00071/laddu-0.1.15-cp37-abi3-musllinux_1_2_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "651604adb6feea2460e760e3dfa47e101837dccb7afc81c4ee2d007456f2bf99",
                "md5": "b08a37e69a6a82e3a915ddb7606d9104",
                "sha256": "c1d082875eb3067a29c9b280a38d9a59bc46797940c0cc3105f76fc7c57f6558"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-musllinux_1_2_i686.whl",
            "has_sig": false,
            "md5_digest": "b08a37e69a6a82e3a915ddb7606d9104",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4094183,
            "upload_time": "2024-12-21T19:01:41",
            "upload_time_iso_8601": "2024-12-21T19:01:41.755936Z",
            "url": "https://files.pythonhosted.org/packages/65/16/04adb6feea2460e760e3dfa47e101837dccb7afc81c4ee2d007456f2bf99/laddu-0.1.15-cp37-abi3-musllinux_1_2_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9f48a14f0eb3761bb82908712ccad9d2591ff4aeddf51a8f6432235a18f5f5eb",
                "md5": "bf0f44e21dbc9cc76490a9e8be82b3aa",
                "sha256": "4f437327ef6e8e1ef51f4040da160999d7d863f7a5d36b4f28cd08f97a2ab415"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "bf0f44e21dbc9cc76490a9e8be82b3aa",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 4178589,
            "upload_time": "2024-12-21T19:01:43",
            "upload_time_iso_8601": "2024-12-21T19:01:43.695387Z",
            "url": "https://files.pythonhosted.org/packages/9f/48/a14f0eb3761bb82908712ccad9d2591ff4aeddf51a8f6432235a18f5f5eb/laddu-0.1.15-cp37-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "739e211df905afdba5bb926bd4c5eef40b3267ec5a371657b14bd4fd9294c7ef",
                "md5": "7c45df7388d2d6978873b5e870a50e4f",
                "sha256": "2b89b2954e8899144342465f355202ecf3791b1449ce3f9fb1dec1cf14614085"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15-cp37-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "7c45df7388d2d6978873b5e870a50e4f",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.9",
            "size": 3394429,
            "upload_time": "2024-12-21T19:01:46",
            "upload_time_iso_8601": "2024-12-21T19:01:46.839948Z",
            "url": "https://files.pythonhosted.org/packages/73/9e/211df905afdba5bb926bd4c5eef40b3267ec5a371657b14bd4fd9294c7ef/laddu-0.1.15-cp37-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "451118980099158d5ca032b2a326ff582daf1a257bdc4d66287579f298dbd98d",
                "md5": "7ef5712cbca407bb5fa258cd96823cd7",
                "sha256": "e4ffeb3032fef94af58099243539e94e8e3fa8034e6a3ce37581699d34e92faf"
            },
            "downloads": -1,
            "filename": "laddu-0.1.15.tar.gz",
            "has_sig": false,
            "md5_digest": "7ef5712cbca407bb5fa258cd96823cd7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1663734,
            "upload_time": "2024-12-21T19:01:45",
            "upload_time_iso_8601": "2024-12-21T19:01:45.343398Z",
            "url": "https://files.pythonhosted.org/packages/45/11/18980099158d5ca032b2a326ff582daf1a257bdc4d66287579f298dbd98d/laddu-0.1.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-21 19:01:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "denehoffman",
    "github_project": "laddu",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "laddu"
}
        
Elapsed time: 0.42299s