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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0071476685e7b182c030bdf8a06b33ab1a669b96b34b1316fcdbf76ce6abcab7
|
|
| MD5 |
36f8b27a891807488a794728f15d22b5
|
|
| BLAKE2b-256 |
a90c05ab51628524ca1b960c08ac2533fec123c93ea678f9bc17d99f935ffb4e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yani_core-0.6.0-cp310-abi3-win_amd64.whl -
Subject digest:
0071476685e7b182c030bdf8a06b33ab1a669b96b34b1316fcdbf76ce6abcab7 - Sigstore transparency entry: 2499284426
- Sigstore integration time:
-
Permalink:
fusion-neutronics/core@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Branch / Tag:
refs/tags/yamc-core-0.5.0,yani-core-0.6.0 - Owner: https://github.com/fusion-neutronics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-python.yml@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Trigger Event:
release
-
Statement type:
File details
Details for the file yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.5 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
242d0067b849eccdadcde4bb07b277151528790f00d7e14bb941c1fae45cd54a
|
|
| MD5 |
148753ea047563f4776b94902e4adbd3
|
|
| BLAKE2b-256 |
04b5257c7a14e214cc920e740c466f8d30554b65e08818beda8a0c54e22d1b7d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yani_core-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
242d0067b849eccdadcde4bb07b277151528790f00d7e14bb941c1fae45cd54a - Sigstore transparency entry: 2499284419
- Sigstore integration time:
-
Permalink:
fusion-neutronics/core@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Branch / Tag:
refs/tags/yamc-core-0.5.0,yani-core-0.6.0 - Owner: https://github.com/fusion-neutronics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-python.yml@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Trigger Event:
release
-
Statement type:
File details
Details for the file yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23710f79d4c5c0ad0d794f95e1ac2c865ae0d286d64b92b09ff8061b479e0261
|
|
| MD5 |
854232943f27820f03d5816468d7509b
|
|
| BLAKE2b-256 |
03ca3111c906cd3041ebff3198e12d89ff9dba2faf7fc24fc7ae40b1ff1186bc
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yani_core-0.6.0-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
23710f79d4c5c0ad0d794f95e1ac2c865ae0d286d64b92b09ff8061b479e0261 - Sigstore transparency entry: 2499284421
- Sigstore integration time:
-
Permalink:
fusion-neutronics/core@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Branch / Tag:
refs/tags/yamc-core-0.5.0,yani-core-0.6.0 - Owner: https://github.com/fusion-neutronics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-python.yml@d7631dbcb26844f5089d1a95565adf06ff7fea27 -
Trigger Event:
release
-
Statement type: