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.18.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.18.0
File Size Uploaded
yani-0.18.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / yani-0.18.0.tar.gz

Download URL yani-0.18.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
00eadcb70cfafb1e433945d1471a81ebc2f5c298b0755da969a7f33191bb2301
BLAKE2b-256 checksum
How to use checksums
6de5acc92b17249cceab9f5982ee0d37b75cf293a544ee1dbead1e05b276faee
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 21, 2026.

Transparency log

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

Download URL yani-0.18.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b614822fe0a3d147724775dc4cbb4602ff36a1d20ae99ee021e5631ff41846f
BLAKE2b-256 checksum
How to use checksums
a9bc12a0a083e4b289ac6a47154279515c07079cba3f8b67ae52e131d41a20e3
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 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files

0.17.0

2 release files

0.16.0

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