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")),
])

final = steel.transmute(schedule=schedule)[-1]
print(final.activity(), "Bq")
print(final.decay_heat(), "W")
print(final.contact_dose(), "Gy/h")

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.
  • No pathway analysis, no sensitivity or uncertainty propagation, no clearance indices or ingestion/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 (issue #389), which is a small fraction of a library.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

yani_core-0.6.0-cp310-abi3-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file yani_core-0.6.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: yani_core-0.6.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yani_core-0.6.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0071476685e7b182c030bdf8a06b33ab1a669b96b34b1316fcdbf76ce6abcab7
MD5 36f8b27a891807488a794728f15d22b5
BLAKE2b-256 a90c05ab51628524ca1b960c08ac2533fec123c93ea678f9bc17d99f935ffb4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for yani_core-0.6.0-cp310-abi3-win_amd64.whl:

Publisher: ci-python.yml on fusion-neutronics/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 242d0067b849eccdadcde4bb07b277151528790f00d7e14bb941c1fae45cd54a
MD5 148753ea047563f4776b94902e4adbd3
BLAKE2b-256 04b5257c7a14e214cc920e740c466f8d30554b65e08818beda8a0c54e22d1b7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci-python.yml on fusion-neutronics/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23710f79d4c5c0ad0d794f95e1ac2c865ae0d286d64b92b09ff8061b479e0261
MD5 854232943f27820f03d5816468d7509b
BLAKE2b-256 03ca3111c906cd3041ebff3198e12d89ff9dba2faf7fc24fc7ae40b1ff1186bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: ci-python.yml on fusion-neutronics/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page