Skip to main content

YANI

Yet Another Nuclide Inventory. A material, an irradiation schedule and a neutron spectrum in; inventories, activities, decay heat, contact dose and decay photon spectra out.

Try it online 🌐 | Documentation 📝 | PyPI 🐍

The browser version needs no install and no account. It is the same Rust solver compiled to WebAssembly, against the same continuous-energy data, so it answers what the wheel answers rather than a reduced version of it. The solve runs on your machine; nothing is uploaded.

pip install yani
import yani

# flexible use of different libraries
yani.cross_section_data = "tendl-2025"
yani.transmutation_reactions = "tendl-2025"
yani.transmutation_branch_ratios = "tendl-2025"
yani.transmutation_decay_data = "endf-b8.1"
yani.transmutation_fission_yields = "endf-b8.1"

# make your own or use inbuilt material definitions
steel = yani.materials.pnnl.material(key="Steel, Stainless 316", volume=1000.0)

# define the neutron spectrum
spectrum = yani.NeutronSource(
    energy=yani.sources.Histogram(
        boundaries=[1e-5, 1e5, 1e6, 1.5e7], probabilities=[1e12, 1e13, 1e14]
    )
)

# define the irradiation and cooling schedule
schedule = yani.PulseSchedule(steps=[
    yani.Pulse(rate=1.11e14, duration=(1, "a"), source=spectrum),
    yani.Cooldown(duration=(1, "d")),
])

# perform the simulation
results = steel.transmute(schedule=schedule)

# access the last material in the time steps (id 0 when the material has none)
final = results.step_materials(material_id=steel.id or 0)[-1]

# convenient access to useful properties of the material
print(final.activity(), "Bq")
print(final.decay_heat(), "W")
print(final.contact_dose(), "Gy/h")

What it solves

The nuclide inventory under irradiation is the Bateman equations with reaction terms, dN/dt = A N, solved as a matrix exponential N(t) = exp(A t) N(0) by CRAM at order 48. The solver is Rust; the wheel needs no compiler and no external toolchain.

Metadata

Release files for yani 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yani 0.16.0
File Size Uploaded
yani-0.16.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / yani-0.16.0.tar.gz

Download URL yani-0.16.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ded150704ac28855797378544ec47d5dca2afc21dcceada4af6a65fc0d28e9e
BLAKE2b-256 checksum
How to use checksums
7ec56bfa13725995f2d2848f4d61d94d481c635550b33ec568f6f04f0b2a88f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / yani-0.16.0-py3-none-any.whl

Download URL yani-0.16.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
311f755e0dedb67101e40467d781af61c9a88fd3bf33a5ce42f7936153261706
BLAKE2b-256 checksum
How to use checksums
66f9f961ec14f134eef03ecd46e05178b600134ffdd07f955da96cdd82f205b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.18.0

2 release files

0.17.0

2 release files

This release

0.16.0 This release

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