![]() |
TkN 2.7.1
Toolkit for Nuclei
|
The data changes below require a database generated with TkN 2.7. Updating the library alone does not change the contents of an existing database.
NaN rather than -1. Use std::isnan() or has_property() to test for an absent moment.half-life or decay width rather than lifetime, while the property key remains lifetime. Values marked uncertain are displayed as [uncertain] rather than [no uncertainty]. Scripts that parse these labels may need updating.tklevel::get_decays_down() and get_decays_up() now return const references rather than copies.databases/groundstates.csv is no longer installed. Database generation instead uses the primary-source files under ground_state_properties/ and nuclear_moments/, together with nudat.json.tklevel::get_magnetic_dipole() and get_electric_quadrupole(); the corresponding *_measure() methods also provide uncertainties and source information. Ground-state access through tknucleus remains available.tkmeasure::has_alternative() detects this case; get_alternative() returns the source text for the other solution, and get_info_tag() retains its provenance.tknucleus and tklevel now provide get_half_life(), get_mean_lifetime() and get_decay_width(). The legacy get_lifetime() remains available, but returns a half-life in time units or a decay width in energy units, not the mean lifetime. Stable states return an infinite time or zero width; absent data return NaN through the new accessors.tknucleus::get_ground_state() and the new tklevel_scheme::get_ground_state() return the zero-energy adopted level independently of dataset selection, or nullptr if none is available.has_property() returns false, get() returns nullptr, and get_property() returns an empty string.tknucleus adds get_element_state(), is_gas(), is_liquid() and is_solid(). An unknown isotope constructed from (Z,A) retains those numbers; construction from an unknown name no longer crashes.QdeltaAlpha no longer double-counts a mass.TKN_INSTALL_* CMake variables. The standalone layout is unchanged. The bundled SQLite library is updated to 3.53.4.DB_DOWNLOAD=ON, installation now fails if the database download fails. tkn-db-update checks a downloaded database before activation, preserves the active database on failure, and returns a nonzero status. It will not overwrite an ordinary TkN.db file or different bytes under an existing database filename.