Read correct discrete photon energy in _get_photon_products_endf

This commit is contained in:
Paul Romano 2020-12-08 06:49:02 -06:00
parent 7700bcf0b3
commit ccf5799f0f

View file

@ -703,7 +703,7 @@ def _get_photon_products_endf(ev, rx):
# TODO: Get file 15 distribution
pass
elif law == 2:
energy = items[1]
energy = items[0]
primary_flag = items[2]
dist.energy = DiscretePhoton(primary_flag, energy,
ev.target['mass'])