![]() |
TkN 2.7.1
Toolkit for Nuclei
|
To handle the fact that a measure is always associated to a specific unit and an uncertainty, that can be in some cases asymmetric, a dedicated class called tkn::tkmeasure has been created.
In addition, a tkmeasure gives some properties on the measure, like if the measure is uncertain, is coming from a systematic study or from calculations. It can also handle the fact that some measures are given as a limit value.
Some recommended nuclear moments have two discrete published solutions. TkN keeps the first scalar without averaging and marks it uncertain. Use has_alternative() and get_alternative() to detect and read the second source representation. The method has_incompatible_alternative() identifies opposite-sign solutions or alternatives separated by more than three combined standard uncertainties.
The standard way to access a tkmeasure is using the tkproperty_list::get() method:
To list the accessible tkmeasure properties, use:
The same applies for a tklevel or a tkdecay:
In this case, the lifetime uncertainty is asymmetric, we can access it as follows:
Here lifetime is the ENSDF half-life T1/2, not the mean lifetime tau. Copy a measure before converting it: properties returned by get() can be shared between nucleus objects and the manager cache.
_info)SQLite measurement columns may have a companion _info string. This is a legacy semicolon-delimited list of tokens, not a general-purpose serialization format. Tokens can be combined; some consumers use substring matching, so arbitrary unescaped semicolons must not be inserted into token values.
| Token | Meaning and current behavior |
|---|---|
ERR=? | No uncertainty quoted; currently mapped to kUncertain, not proof that the value itself is doubtful |
ERR=LT, LE, GT, GE | Upper/lower boundary; reversed by reciprocal time/width conversion |
ERR=AP, CA, SY | Approximate, calculated, systematic; consumed into the corresponding flag |
VAL=() | Tentative value, consumed into kTentative |
ERR=CONV | Derived conversion, consumed into the converted flag |
OFF=X | Unknown energy-band offset; the level reader currently reads one character |
ISO=M1 | Isomer marker; current level parser supports the historical single-digit index |
STABLE | Stable-state marker, separate from a missing half-life |
TYPE=BE2W | Transition-probability kind, here electric quadrupole in Weisskopf units |
ALT=..., ALT_INCOMPATIBLE=1 | Other published solution and incompatibility diagnostic |
Unknown source uncertainty and exact zero uncertainty are not reliably distinguished throughout the legacy pipeline: a NULL uncertainty can become zero. Check qualifiers and provenance; do not infer exactness solely from get_error()==0. V3 will separate missing uncertainty, tentative values, limits, alternatives and provenance into typed fields. Existing tags are not rewritten by this release.