From 984c4f6884900e89d4077e07df75ed4d160ad495 Mon Sep 17 00:00:00 2001 From: Evgeniy Unzhakov Date: Fri, 8 May 2026 16:11:06 +0300 Subject: [PATCH] Add regression test for Tc99 ENSDF intensity values --- tests/test_nuclear_data.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_nuclear_data.py b/tests/test_nuclear_data.py index 58d7458..cd65e5b 100644 --- a/tests/test_nuclear_data.py +++ b/tests/test_nuclear_data.py @@ -258,10 +258,18 @@ class TestPaceENSDFIntegration: assert isinstance(branch, BranchInfo) assert branch.level_index >= 0 assert branch.level_energy_keV >= 0 - assert 0 < branch.intensity <= 100 + assert 0 < branch.intensity <= 1.0 if branch.log_ft is not None: assert branch.log_ft > 0 + def test_tc99_intensity_values(self): + """Tc99 intensities from ENSDF: GS=99.9984%, 89.5keV=0.0016%.""" + info = get_decay_info_from_paceENSDF("Tc99", "beta_minus") + gs = next(b for b in info.branches if b.level_energy_keV == 0.0) + ex = next(b for b in info.branches if b.level_energy_keV == 89.5) + assert abs(gs.intensity - 0.999984) < 1e-6 + assert abs(ex.intensity - 0.000016) < 1e-6 + def test_invalid_nuclide(self): with pytest.raises(ValueError, match="Unknown element symbol"): get_decay_info_from_paceENSDF("Xx99", "beta_minus")