From e97115b443173470aacd5a0bf49c61d90ae674cc Mon Sep 17 00:00:00 2001 From: amandalund Date: Wed, 18 Jul 2018 15:57:53 -0500 Subject: [PATCH] Convert Compton profile binding energies to eV in IncidentPhoton.from_ace() --- openmc/data/photon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/data/photon.py b/openmc/data/photon.py index f0d8a2f023..6e76d10bac 100644 --- a/openmc/data/photon.py +++ b/openmc/data/photon.py @@ -468,7 +468,8 @@ class IncidentPhoton(EqualityMixin): # Get binding energy for each shell idx = ace.jxs[7] - data.compton_profiles['binding_energy'] = ace.xss[idx : idx+n_shell] + e = ace.xss[idx : idx+n_shell]*EV_PER_MEV + data.compton_profiles['binding_energy'] = e # Create Compton profile for each electron shell profiles = []