nook¶
nook: nuclear level schemes from ENSDF.
Two backends behind one data model – the IAEA Livechart API for adopted
levels, the NNDC flat files for every evaluated dataset. See docs/usage.md.
- nook.SOURCE_ALIASES = {'api': 'livechart', 'ensdf': 'file', 'flat': 'file', 'iaea': 'livechart', 'ripl': 'ripl3'}¶
Accepted spelling -> canonical source name. Every dispatcher that takes a
sourcestring (here,compare) resolves through this one map.
- nook.level_scheme(nuclide, source='livechart', dataset=None, with_gammas=True, cache=None, path=None)[source]¶
Fetch a level scheme for
nuclide("24Mg","Mg-24",(12, 24)).sourceis"livechart"for the IAEA API, which serves adopted levels only;"file"for local flat files, wheredatasetpicks one evaluation by DSID substring; or"ripl3"for the committed RIPL-3 mirror (levels cut 2021, derived from ENSDF).
- nook.decay_schemes(nuclide, path=None)[source]¶
Every decay dataset populating
nuclide, from local ENSDF files.Decay data is only available from the flat files; the Livechart API serves adopted levels alone.
- nook.ground_state(nuclide, source='livechart', cache=None, path=None)[source]¶
Mass, abundance, charge radius and moments for
nuclide.source="livechart"aggregates AME, NUBASE, charge radii and moment compilations (seenook.EVALUATIONSfor attribution andnook.UNITSfor units –atomic_massis in micro-u, not u).source="ripl3"serves the sparser RIPL-3 mass tables: mass excess and abundance, with FRDM95/HFB-14 theory values inmetadata. The ENSDF flat files carry none of this.
Modules
A tiny on-disk cache for remote responses. |
|
Command line front end: |
|
Cross-source comparison: levels and masses where the backends overlap. |
|
Decay datasets: parent, normalisation and feeding records. |
|
Ground-state properties: masses, abundances, radii and moments. |
|
The data model returned by every source backend. |
|
Nuclide identifiers: parsing, normalisation and ENSDF NUCID handling. |
|
Publication-quality figures for level, band and decay schemes. |
|
Parsing of ENSDF-flavoured physical quantities. |
|
|
Correct transcription errors that the mass surface can confirm. |
Backends that can produce a |
|
|
Ground states for every nuclide in a local ENSDF distribution. |