decay energy added

This commit is contained in:
dr.yuri 2020-05-26 17:03:09 +03:00
parent dd67027c0f
commit 7fed6d28fb
2 changed files with 5 additions and 1 deletions

View file

@ -898,7 +898,7 @@ class Chain:
previous = self[iso]
new_nuclide = Nuclide(previous.name)
new_nuclide.half_life = previous.half_life
new_nuclide.decay_energy = new_nuclide.decay_energy
new_nuclide.decay_energy = previous.decay_energy
new_decay = []
for mode in previous.decay_modes:

View file

@ -487,6 +487,8 @@ def test_reduce(gnd_simple_chain, endf_chain):
u5_round0 = no_depth["U235"]
assert u5_round0.n_decay_modes == ref_U5.n_decay_modes
assert u5_round0.half_life == ref_U5.half_life
assert u5_round0.decay_energy == ref_U5.decay_energy
for newmode, refmode in zip(u5_round0.decay_modes, ref_U5.decay_modes):
assert newmode.target is None
assert newmode.type == refmode.type
@ -507,6 +509,8 @@ def test_reduce(gnd_simple_chain, endf_chain):
bareI5 = no_depth["I135"]
assert bareI5.n_decay_modes == ref_iodine.n_decay_modes
assert bareI5.half_life == ref_iodine.half_life
assert bareI5.decay_energy == ref_iodine.decay_energy
for newmode, refmode in zip(bareI5.decay_modes, ref_iodine.decay_modes):
assert newmode.target is None
assert newmode.type == refmode.type