Skip to main content

yani-core

Yet Another Nuclide Inventory: transmutation and activation without transport. A material, an irradiation schedule and a neutron spectrum in; inventories, activities and decay heat out.

This is the compiled distribution, and it provides the yani module itself, so the import name and the distribution name differ (as pillow provides PIL). Install yani rather than this: it pins the matching version of this wheel and is where the documentation lives.

import yani

yani.cross_section_data = "endf-b8.1"

steel = yani.materials.pnnl.material("Steel, Stainless 316", volume=1000.0)
spectrum = yani.NeutronSource(
    energy=yani.sources.Histogram([1e-5, 1e5, 1e6, 1.5e7], [1e12, 1e13, 1e14])
)
schedule = yani.PulseSchedule([
    yani.Pulse(rate=1.11e14, duration=(1, "a"), source=spectrum),
    yani.Cooldown(duration=(1, "d")),
])

results = steel.transmute(schedule=schedule)
final = results.get_final_material(steel.id or 0)
print(final.activity(), "Bq")
print(final.decay_heat(), "W")
print(final.contact_dose(), "Gy/h")
print(final.clearance_index("UK_EPR16_out_of_scope").index)

Relationship to yamc

yamc is a superset: it ships everything here plus neutron and photon transport, geometry, tallies and transport-coupled transmutation. The two are alternatives. Installing both puts two extension modules in one process, so yamc.Material and yani.Material are distinct types and the nuclear-data configuration (cross_section_data, the four transmutation_* sources) exists twice, once per package.

Pick yani when you have a spectrum already and want none of the transport stack; pick yamc when the spectrum should come from a transport solve.

What it does not do

  • One stepper (ForwardEulerStepper, beginning-of-step rates). No predictor-corrector.
  • Uncertainty is by resampling: pass data_uncertainty=yani.DataUncertainty() to transmute for a standard deviation on inventories, activity, decay heat and dose. It perturbs MF=33 cross sections, half-lives, decay energies, two-mode decay branching and a supplied flux spectrum's stated error. Other inputs (MF=32 resonance covariance, self-shielding, photon line intensities, the material composition) are held at nominal, and get_data_uncertainty_info lists every one it held. There are no first-order sensitivity coefficients.
  • Pathways are reported per product (get_production_routes), but there is no automatic pathway search across the whole inventory.
  • No ingestion or inhalation dose.
  • Cross sections are read from the continuous-energy library and collapsed against your spectrum, so this reads transport-format data files even though it runs no transport. Only the sections activation needs are read, which is a small fraction of a library.

Metadata

Release files for yani-core 0.19.0

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

Built distributions (wheels)

Table of built distributions (wheels) for yani-core 0.19.0
File Interpreter ABI Platform
yani_core-0.19.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
yani_core-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
yani_core-0.19.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 18.6 MB

Release files / yani_core-0.19.0-cp310-abi3-win_amd64.whl

Download URL yani_core-0.19.0-cp310-abi3-win_amd64.whl
Size 6.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d410817800e7c4cd39bf1ca5d03849a77b89be093568a9f3e2b75589759a2135
BLAKE2b-256 checksum
How to use checksums
51bb7698085442df8d7991b9e325740647ac4dab3f82d633ef5914d44ceca32f
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 Oct 1, 2026.

Transparency log

Release files / yani_core-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL yani_core-0.19.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
5af403adaf384241e09551bf364f3b3baeae44e7f528900045e6092b5e6a8964
BLAKE2b-256 checksum
How to use checksums
39106a555e2d3664b621227ed5b0578c1fb0cd3bda92f6479048b3400ed2883c
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 Oct 1, 2026.

Transparency log

Release files / yani_core-0.19.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL yani_core-0.19.0-cp310-abi3-macosx_11_0_arm64.whl
Size 5.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f74f2ab21ba1f25ecfe08b919ca8e8c0d081be6a444040ade591bc4e969c1683
BLAKE2b-256 checksum
How to use checksums
11d7c3fa4c3901538d1eb57a55b39b1215f0ad69e691169ede5278dac86c8637
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 Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.19.0 This release

3 release files

0.18.0

3 release files

0.17.0

3 release files

0.16.0

3 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